mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 20:40:36 +03:00
M: Fix layout for small screens
Some checks failed
Frontend CI / build (22.x) (push) Has been cancelled
Some checks failed
Frontend CI / build (22.x) (push) Has been cancelled
This commit is contained in:
parent
c942fc0c31
commit
b41c7a922f
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user