mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
Fixed the position of the panel in the mobile view (#7449)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
This commit is contained in:
parent
088c37fa20
commit
4234642714
@ -86,7 +86,24 @@
|
||||
const fitPopup = (props: PanelProps, contentPanel: HTMLElement): void => {
|
||||
if (modalHTML != null) {
|
||||
const device: DeviceOptions = $deviceInfo
|
||||
options = fitPopupElement(modalHTML, device, props.element, contentPanel)
|
||||
options =
|
||||
device.isMobile && device.docWidth <= 480
|
||||
? {
|
||||
props: {
|
||||
top: 'var(--status-bar-height)',
|
||||
bottom: '4.25rem',
|
||||
left: '0',
|
||||
right: '0',
|
||||
width: '100%',
|
||||
height: 'calc(100dvh - var(--status-bar-height) - 4.25rem)',
|
||||
maxWidth: '100%',
|
||||
maxHeight: '100%',
|
||||
minWidth: '0'
|
||||
},
|
||||
showOverlay: true,
|
||||
direction: 'bottom'
|
||||
}
|
||||
: fitPopupElement(modalHTML, device, props.element, contentPanel)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user