M: Fix layout for small screens
This commit is contained in:
parent
68dd1aa3c4
commit
a47ea5d32d
|
@ -15,7 +15,7 @@ import FormConstituenta from './FormConstituenta';
|
||||||
import ToolbarConstituenta from './ToolbarConstituenta';
|
import ToolbarConstituenta from './ToolbarConstituenta';
|
||||||
|
|
||||||
// Threshold window width to switch layout.
|
// Threshold window width to switch layout.
|
||||||
const SIDELIST_LAYOUT_THRESHOLD = 1050; // px
|
const SIDELIST_LAYOUT_THRESHOLD = 1000; // px
|
||||||
|
|
||||||
interface EditorConstituentaProps {
|
interface EditorConstituentaProps {
|
||||||
activeCst?: IConstituenta;
|
activeCst?: IConstituenta;
|
||||||
|
|
|
@ -46,7 +46,7 @@ function ViewConstituents({ expression, schema, activeCst, isBottom, onOpenEdit,
|
||||||
transitionDuration: `${2 * PARAMETER.moveDuration}ms`,
|
transitionDuration: `${2 * PARAMETER.moveDuration}ms`,
|
||||||
transitionTimingFunction: 'ease-in-out',
|
transitionTimingFunction: 'ease-in-out',
|
||||||
opacity: isMounted ? 1 : 0,
|
opacity: isMounted ? 1 : 0,
|
||||||
width: isMounted ? '100%' : '0'
|
width: isMounted ? 'fit-content' : '0'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ConstituentsSearch
|
<ConstituentsSearch
|
||||||
|
|
Loading…
Reference in New Issue
Block a user