Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): round iOS menu groups with the sheet

Elian Doran27bd7b905fca
diff --git a/apps/client/src/stylesheets/theme-next/ios.css b/apps/client/src/stylesheets/theme-next/ios.css
index 4d5847a00f..678882866c 100644
--- a/apps/client/src/stylesheets/theme-next/ios.css
+++ b/apps/client/src/stylesheets/theme-next/ios.css
@@ -119,6 +119,7 @@ body.mobile.ios {
.dropdown-menu.mobile-bottom-menu
).show {
--menu-background-color: var(--glass-background);
+ --mobile-menu-group-radius: calc(var(--mobile-sheet-radius) - var(--menu-padding-size));
border: 0;
border-radius: var(--mobile-sheet-radius);
box-shadow: var(--glass-shadow);
diff --git a/apps/client/src/widgets/react/Menu.css b/apps/client/src/widgets/react/Menu.css
index 96758cc17b..4ae800daa3 100644
--- a/apps/client/src/widgets/react/Menu.css
+++ b/apps/client/src/widgets/react/Menu.css
@@ -321,7 +321,7 @@ body.mobile .tn-menu-actions.tn-menu-actions-cards {
& > .tn-menu-action {
padding-block: var(--dropdown-menu-padding-vertical);
background: var(--card-background-color);
- border-radius: 6px;
+ border-radius: var(--mobile-menu-group-radius, 6px);
&::before {
content: none;