M: Fix layout for small screens
Some checks failed
Frontend CI / build (22.x) (push) Has been cancelled

This commit is contained in:
Ivan 2025-01-09 20:36:17 +03:00
parent c942fc0c31
commit b41c7a922f
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import FormConstituenta from './FormConstituenta';
import ToolbarConstituenta from './ToolbarConstituenta';
// Threshold window width to switch layout.
const SIDELIST_LAYOUT_THRESHOLD = 1050; // px
const SIDELIST_LAYOUT_THRESHOLD = 1000; // px
interface EditorConstituentaProps {
activeCst?: IConstituenta;

View File

@ -46,7 +46,7 @@ function ViewConstituents({ expression, schema, activeCst, isBottom, onOpenEdit,
transitionDuration: `${2 * PARAMETER.moveDuration}ms`,
transitionTimingFunction: 'ease-in-out',
opacity: isMounted ? 1 : 0,
width: isMounted ? '100%' : '0'
width: isMounted ? 'fit-content' : '0'
}}
>
<ConstituentsSearch