Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): drop the shadow under iOS dialog buttons

Elian Doran011526b73e85
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index b42a6bb611..b2423ef512 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -148,11 +148,13 @@ body {
user-select: text;
}
-/* The edge, top highlight and drop shadow of a glass surface, drawn without a border. */
+/* The edge and top highlight of a glass surface, drawn without a border, and its drop shadow. */
:root {
- --glass-shadow:
+ --glass-edge:
inset 0 0 0 1px var(--glass-edge-color),
- inset 0 1px 0 var(--glass-highlight-color),
+ inset 0 1px 0 var(--glass-highlight-color);
+ --glass-shadow:
+ var(--glass-edge),
0 8px 24px rgba(0, 0, 0, calc(var(--dropdown-shadow-opacity) * 0.75));
}
diff --git a/apps/client/src/stylesheets/theme-next/ios.css b/apps/client/src/stylesheets/theme-next/ios.css
index eb6326a4db..8c81204725 100644
--- a/apps/client/src/stylesheets/theme-next/ios.css
+++ b/apps/client/src/stylesheets/theme-next/ios.css
@@ -240,7 +240,7 @@ body.mobile.ios {
--modal-control-button-size: 40px;
font-size: 22px;
backdrop-filter: var(--dropdown-backdrop-filter);
- box-shadow: var(--glass-shadow);
+ box-shadow: var(--glass-edge);
&,
&:hover {