M: Fix layout for small screens

This commit is contained in:
Ivan 2025-01-09 20:35:51 +03:00
parent 68dd1aa3c4
commit a47ea5d32d
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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