B: Fix dialog heights for fullscreen dialogs

This commit is contained in:
Ivan 2025-03-13 20:14:27 +03:00
parent 25297b0459
commit f2ef9f945c
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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