@ -24,11 +24,19 @@ kbd {
font - size : 1.5 em ;
padding - left : 0.5 em ;
padding - right : 0.5 em ;
color : var ( -- main - text - color ) ;
}
< / s t y l e > ` ;
const FANCYTREE _CSS = `
< style >
. tree - wrapper {
max - height : 100 % ;
margin - top : 55 px ;
overflow - y : auto ;
contain : content ;
}
. fancytree - custom - icon {
font - size : 2 em ;
}
@ -62,6 +70,14 @@ span.fancytree-expander {
border - width : 2 px ;
border - style : solid ;
}
. tree - wrapper . collapse - tree - button ,
. tree - wrapper . scroll - to - active - note - button ,
. tree - wrapper . tree - settings - button {
position : fixed ;
margin - right : 16 px ;
display : none ;
}
< / s t y l e > ` ;
export default class MobileLayout {
@ -72,17 +88,27 @@ export default class MobileLayout {
. css ( 'height' , '100vh' )
. child ( new ScreenContainer ( "tree" , 'column' )
. class ( "d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-5 col-md-4 col-lg-4 col-xl-4" )
. css ( "max-height" , "100%" )
. css ( 'padding-left' , 0 )
. css ( 'contain' , 'content' )
. child ( new MobileGlobalButtonsWidget ( ) )
. child ( new NoteTreeWidget ( "main" ) . cssBlock ( FANCYTREE _CSS ) ) )
. child ( new NoteTreeWidget ( "main" )
. cssBlock ( FANCYTREE _CSS ) ) )
. child ( new ScreenContainer ( "detail" , "column" )
. class ( "d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-7 col-md-8 col-lg-8" )
. css ( 'max-height' , '100%' )
. child ( new FlexContainer ( 'row' ) . overflowing ( )
. css ( 'font-size' , 'larger' )
. css ( 'align-items' , 'center' )
. css ( 'position' , 'fixed' )
. css ( 'top' , 0 )
. child ( new MobileDetailMenuWidget ( ) )
. child ( new NoteTitleWidget ( ) )
. child ( new CloseDetailButtonWidget ( ) ) )
. child ( new NoteDetailWidget ( )
. css ( 'padding' , '5px 20px 10px 0' ) ) ) ;
. css ( 'padding' , '5px 20px 10px 0' )
. css ( 'margin-top' , '55px' )
. css ( 'overflow-y' , 'auto' )
. css ( 'contain' , 'content' ) ) ) ;
}
}