Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile/text): lift the formatting toolbar with a shadow

Elian Doran814e86a2d499
diff --git a/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css b/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css
index 0543d8b2bd..ccef1e2bf7 100644
--- a/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css
+++ b/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css
@@ -41,6 +41,7 @@ body.mobile {
var(--card-background-color, var(--accented-background-color))
),
var(--mobile-toolbar-backdrop, var(--main-background-color));
+ box-shadow: 0 2px 8px rgba(0, 0, 0, calc(var(--dropdown-shadow-opacity, 0.2) / 2));
/* On iOS, `--tn-keyboard-gap` is updated continuously by the
ViewController (Swift) as the keyboard frame changes, so the
toolbar follows a finger-dragged keyboard during interactive