B: Fix dialog heights for fullscreen dialogs
This commit is contained in:
parent
65c210b047
commit
ea8c86119c
|
@ -71,9 +71,10 @@ export function ModalView({
|
|||
<div
|
||||
className={clsx(
|
||||
'@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',
|
||||
overflowVisible ? 'overflow-visible' : 'overflow-auto',
|
||||
fullScreen ? 'max-h-[calc(100svh-2rem)]' : 'max-h-[calc(100svh-8rem)]',
|
||||
className
|
||||
)}
|
||||
{...restProps}
|
||||
|
|
|
@ -27,7 +27,7 @@ export function DlgShowAST() {
|
|||
|
||||
return (
|
||||
<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}
|
||||
fullScreen
|
||||
>
|
||||
|
|
|
@ -36,7 +36,7 @@ export function DlgShowTypeGraph() {
|
|||
return (
|
||||
<ModalView
|
||||
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
|
||||
helpTopic={HelpTopic.UI_TYPE_GRAPH}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue
Block a user