Skip to content

Commit

Permalink
mercurywm: window info padding and size in list (#56)
Browse files Browse the repository at this point in the history
Change padding in the window info bottom bar so it doesn't overflow out
of the container, and add window sizes in `window list`
  • Loading branch information
fg123 authored and MichaelKim committed Jan 24, 2019
1 parent b65d6e4 commit 1d358f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ html, body, #root {
height: 15px;
color: #FDFDFD;
font-size: 8px;
padding: 3px;
padding: 0px 3px;
}

.window-frame {
Expand Down
4 changes: 3 additions & 1 deletion src/background/commands/window/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ export default function window(state: StoreState, params: Array<string>) {
return shift.call(this, state, params);
case 'list':
this.output('In this workspace:');
this.workspace.windows.forEach(({ terminal }, i) => {
this.workspace.windows.forEach((window, i) => {
const terminal = window.terminal;
let outputString = '[' + i + '] ';
outputString += '(' + window.x + ', ' + window.y + ', ' + window.width + ', ' + window.height + ') ';
if (terminal.running) {
outputString +=
'Running: ' +
Expand Down

0 comments on commit 1d358f2

Please sign in to comment.