B: Fix dialog heights for fullscreen dialogs
This commit is contained in:
parent
65c210b047
commit
ea8c86119c
|
@ -71,9 +71,10 @@ export function ModalView({
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'@container/modal',
|
'@container/modal',
|
||||||
'max-h-[calc(100svh-8rem)] max-w-[100svw] xs:max-w-[calc(100svw-2rem)]',
|
'max-w-[100svw] xs:max-w-[calc(100svw-2rem)]',
|
||||||
'overscroll-contain outline-hidden',
|
'overscroll-contain outline-hidden',
|
||||||
overflowVisible ? 'overflow-visible' : 'overflow-auto',
|
overflowVisible ? 'overflow-visible' : 'overflow-auto',
|
||||||
|
fullScreen ? 'max-h-[calc(100svh-2rem)]' : 'max-h-[calc(100svh-8rem)]',
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
{...restProps}
|
{...restProps}
|
||||||
|
|
|
@ -27,7 +27,7 @@ export function DlgShowAST() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ModalView
|
<ModalView
|
||||||
className='relative w-[calc(100dvw-3rem)] h-[calc(100dvh-6rem)] cc-mask-sides'
|
className='relative w-[calc(100dvw-3rem)] h-[calc(100dvh-3rem)] cc-mask-sides'
|
||||||
helpTopic={HelpTopic.UI_FORMULA_TREE}
|
helpTopic={HelpTopic.UI_FORMULA_TREE}
|
||||||
fullScreen
|
fullScreen
|
||||||
>
|
>
|
||||||
|
|
|
@ -36,7 +36,7 @@ export function DlgShowTypeGraph() {
|
||||||
return (
|
return (
|
||||||
<ModalView
|
<ModalView
|
||||||
header='Граф ступеней'
|
header='Граф ступеней'
|
||||||
className='cc-mask-sides flex flex-col justify-stretch w-[calc(100dvw-3rem)] h-[calc(100dvh-6rem)]'
|
className='cc-mask-sides flex flex-col justify-stretch w-[calc(100dvw-3rem)] h-[calc(100dvh-3rem)]'
|
||||||
fullScreen
|
fullScreen
|
||||||
helpTopic={HelpTopic.UI_TYPE_GRAPH}
|
helpTopic={HelpTopic.UI_TYPE_GRAPH}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user