From d751959e6f5b35e31ac914d51db054f20e563529 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 4 Apr 2018 14:18:19 +0200 Subject: [PATCH] [scss.container] fixed chrome flex-colum issue [lib.content-controller] when removing current channel -> navigate to channel{ cid: 1 } --- webpack/lib/content-controller.js | 9 ++++++++- webpack/scss/container.scss | 9 ++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) 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;