54 lines
1.5 KiB
CSS
54 lines
1.5 KiB
CSS
.shell .modal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: min(86vh, 760px);
|
|
max-height: min(86dvh, 760px);
|
|
overflow: hidden;
|
|
}
|
|
.shell .modal > [class*='modalBody'] {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.shell .modal > [class*='modalFooter'] {
|
|
position: relative;
|
|
z-index: 1;
|
|
flex: 0 0 auto;
|
|
background: var(--dsw-alias-bg-layer-2, var(--mn-surface));
|
|
}
|
|
.shell .modal form[class*='documentEditor'] {
|
|
flex-shrink: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
}
|
|
.shell .modal form[class*='documentEditor'] > header { display: none; }
|
|
|
|
.shell [class*='documentWorkspace'] {
|
|
height: clamp(420px, calc(100dvh - var(--dsh-frame-top-clearance, 0px) - 344px), 720px);
|
|
min-height: 420px;
|
|
align-items: stretch;
|
|
}
|
|
.shell [class*='documentList'],
|
|
.shell [class*='documentReader'] {
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
@container mnemon-workbench (max-width: 640px) {
|
|
.shell [class*='documentWorkspace'] { height: auto; min-height: 0; }
|
|
.shell [class*='documentList'] { overflow-y: auto; scrollbar-gutter: auto; }
|
|
.shell [class*='documentReader'] { overflow: visible; scrollbar-gutter: auto; }
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.shell [class*='documentWorkspace'] { height: auto; min-height: 0; }
|
|
.shell [class*='documentList'] { overflow-y: auto; scrollbar-gutter: auto; }
|
|
.shell [class*='documentReader'] { overflow: visible; scrollbar-gutter: auto; }
|
|
}
|