Skip to content

Commit 1d03372

Browse files
committed
Fix CSS regressions breaking the native app hole punch
Regressions introduced in e0212ca
1 parent 848ff5f commit 1d03372

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

frontend/src/components/window/Panel.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,11 @@
473473
padding-bottom: 4px;
474474
}
475475
}
476+
}
476477
477-
// Needed for the viewport hole punch on desktop
478-
.viewport-hole-punch &.document-panel,
479-
.viewport-hole-punch &.document-panel .panel-body:not(:has(.welcome-panel)) {
480-
background: none;
481-
}
478+
// Needed for the viewport hole punch on desktop
479+
.viewport-hole-punch .panel.document-panel,
480+
.viewport-hole-punch .panel.document-panel .panel-body:not(:has(.welcome-panel)) {
481+
background: none;
482482
}
483483
</style>

frontend/src/components/window/Workspace.svelte

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,15 @@
265265
cursor: ew-resize;
266266
}
267267
}
268+
}
268269
269-
// Needed for the viewport hole punch on desktop
270-
.viewport-hole-punch & .workspace-grid-subdivision:has(.panel.document-panel)::after {
271-
content: "";
272-
position: absolute;
273-
inset: 6px;
274-
border-radius: 6px;
275-
box-shadow: 0 0 0 calc(100vw + 100vh) var(--color-2-mildblack);
276-
z-index: -1;
277-
}
270+
// Needed for the viewport hole punch on desktop
271+
.viewport-hole-punch .workspace .workspace-grid-subdivision:has(.panel.document-panel)::after {
272+
content: "";
273+
position: absolute;
274+
inset: 6px;
275+
border-radius: 6px;
276+
box-shadow: 0 0 0 calc(100vw + 100vh) var(--color-2-mildblack);
277+
z-index: -1;
278278
}
279279
</style>

0 commit comments

Comments
 (0)