Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): cover not working properly in modals

Elian Doran20eaa7907953
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 17e431e542..a8d5c75006 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -1255,7 +1255,7 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
inset-inline-start: 0;
inset-inline-end: 0;
bottom: 0;
- z-index: 1000;
+ z-index: 2500;
background: rgba(0, 0, 0, 0.1);
}
diff --git a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx
index 994fc834d5..78107ec810 100644
--- a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx
+++ b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx
@@ -65,7 +65,10 @@ function TabBarModal({ mainNoteContexts, shown, setShown }: {
x: e.pageX,
y: e.pageY,
items: [
- { title: t("tab_row.close_all_tabs"), command: "closeAllTabs", uiIcon: "bx bx-empty" },
+ { title: t("tab_row.new_tab"), command: "openNewTab", uiIcon: "bx bx-plus" },
+ { title: t("tab_row.reopen_last_tab"), command: "reopenLastTab", uiIcon: "bx bx-undo", enabled: appContext.tabManager.recentlyClosedTabs.length !== 0 },
+ { kind: "separator" },
+ { title: t("tab_row.close_all_tabs"), command: "closeAllTabs", uiIcon: "bx bx-trash destructive-action-icon" },
],
selectMenuItemHandler: ({ command }) => {
if (command) {