xsDx
This commit is contained in:
@@ -1679,7 +1679,9 @@ body .tray-pill.tray-pill-status--unconfigured {
|
||||
}
|
||||
|
||||
.window.is-mobile-fullscreen {
|
||||
position: fixed !important;
|
||||
left: 0 !important;
|
||||
right: 0 !important;
|
||||
border-radius: 0;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
|
||||
@@ -1185,16 +1185,22 @@ if (payloadNode) {
|
||||
if (isMobileViewport()) {
|
||||
const mobileTopInset = maximizeOverSystemBar ? 0 : topDesktopInset;
|
||||
record.node.classList.add('is-mobile-fullscreen');
|
||||
record.node.style.position = 'fixed';
|
||||
record.node.style.left = '0px';
|
||||
record.node.style.right = '0px';
|
||||
record.node.style.top = `${mobileTopInset}px`;
|
||||
record.node.style.width = '100%';
|
||||
record.node.style.bottom = `${bottomDesktopInset}px`;
|
||||
record.node.style.width = '100vw';
|
||||
record.node.style.height = maximizeOverSystemBar
|
||||
? `calc(100% - ${bottomDesktopInset}px)`
|
||||
: `calc(100% - ${mobileTopInset + bottomDesktopInset}px)`;
|
||||
? `calc(100vh - ${bottomDesktopInset}px)`
|
||||
: `calc(100vh - ${mobileTopInset + bottomDesktopInset}px)`;
|
||||
return;
|
||||
}
|
||||
|
||||
record.node.classList.remove('is-mobile-fullscreen');
|
||||
record.node.style.position = 'absolute';
|
||||
record.node.style.right = '';
|
||||
record.node.style.bottom = '';
|
||||
|
||||
if (record.state.maximized) {
|
||||
const maximizedTopInset = maximizeOverSystemBar ? 0 : topDesktopInset;
|
||||
|
||||
Reference in New Issue
Block a user