Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): keep the tab row clear of the PWA window controls

Elian Doran20d972a5b28d
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index ee018c10d1..a5ea9e24ea 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -2029,6 +2029,13 @@ body.electron:not(.platform-darwin) .tab-row-container {
padding-inline-end: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));
}
+@media (display-mode: window-controls-overlay) {
+ body:not(.electron) .tab-row-container {
+ padding-inline-start: env(titlebar-area-x, 0px);
+ padding-inline-end: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));
+ }
+}
+
.tab-row-container .toggle-button {
background: transparent;
appearance: none;