diff --git a/webpack/lib/content-controller.js b/webpack/lib/content-controller.js index ebab335..773cf32 100644 --- a/webpack/lib/content-controller.js +++ b/webpack/lib/content-controller.js @@ -321,8 +321,15 @@ export default class ContentController{ let channel = gs.get.channel.list[ci]; // 2. If id matches -> REMOVE - if( channel.id === c.id ) + if( channel.id === c.id ){ + + // 2.1. If remove CURRENT channel -> nav to channel 1 + if( channel.id === gs.get.content.cid ) + gs.get.channel.nav(1); + + // 2.2. Delete channel gs.get.channel.list.splice(ci, 1); + } } diff --git a/webpack/scss/container.scss b/webpack/scss/container.scss index 4f0a55b..c2e4d9d 100644 --- a/webpack/scss/container.scss +++ b/webpack/scss/container.scss @@ -90,7 +90,10 @@ background-color: $container-bg; - flex-flow: row wrap; + flex-flow: row wrap; + justify-content: stretch; + align-items: flex-start; + align-content: flex-start; overflow: auto; @@ -118,7 +121,7 @@ // {1} Meta Data // & > span.meta{ - flex: 1 1 90%; + flex: 0 1 100%; display: inline-block; position: relative; @@ -148,7 +151,7 @@ // {2} Message Text // & > span.text{ - flex: 1 1 90%; + flex: 0 1 100%; display: inline-block; position: relative;