diff --git a/app/electron.js b/app/electron.js index 0639f5f..610cb9a 100644 --- a/app/electron.js +++ b/app/electron.js @@ -245,6 +245,10 @@ function createWindow( event, hash ) { emitAll( 'repos updated', repos ); } ); + + rpc.on( 'set terminal size', ( { uid, cols, rows } ) => { + sessions.get( uid ).resize( { cols, rows } ); + } ); } ); @@ -255,6 +259,7 @@ function createWindow( event, hash ) { rpc.removeAllListeners( 'add repo' ); rpc.removeAllListeners( 'update repo' ); rpc.removeAllListeners( 'remove repo' ); + rpc.removeAllListeners( 'set terminal size' ); session.removeAllListeners(); session.destroy(); diff --git a/app/src/components/RepoView/CommandOutput.vue b/app/src/components/RepoView/CommandOutput.vue index d6dd427..be8d8fc 100644 --- a/app/src/components/RepoView/CommandOutput.vue +++ b/app/src/components/RepoView/CommandOutput.vue @@ -11,7 +11,7 @@ position : relative; height : 100%; - padding : 0 1em; + padding : 0 .5em; > iframe { width : calc( 100% - 2em ) !important; @@ -117,16 +117,6 @@ - -