[scss.container] fixed chrome flex-colum issue [lib.content-controller] when removing current channel -> navigate to channel{ cid: 1 }

This commit is contained in:
xdrm-brackets 2018-04-04 14:18:19 +02:00
parent 30541caf1c
commit d751959e6f
2 changed files with 14 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -91,6 +91,9 @@
background-color: $container-bg;
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;