Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile/split): layout horizontally on tablet

Elian Dorane3a2623a5359
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 5db21a7e25..e875d8b266 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -2626,10 +2626,12 @@ iframe.print-iframe {
width: 100%;
}
-body.mobile .split-note-container-widget {
- flex-direction: column !important;
-
- .note-split {
- width: 100%;
+@media (max-width: 991px) {
+ body.mobile .split-note-container-widget {
+ flex-direction: column !important;
+
+ .note-split {
+ width: 100%;
+ }
}
}
\ No newline at end of file
diff --git a/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx b/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx
index 4f03b201c6..79ac24aac6 100644
--- a/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx
+++ b/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx
@@ -28,7 +28,7 @@ export default function MobileDetailMenu() {
{ kind: "separator" },
{ title: t("mobile_detail_menu.note_revisions"), command: "showRevisions", uiIcon: "bx bx-history" },
{ kind: "separator" },
- { title: t("create_pane_button.create_new_split"), command: "openNewNoteSplit", uiIcon: "bx bx-dock-right" }
+ { title: t("create_pane_button.create_new_split"), command: "openNewNoteSplit", uiIcon: "bx bx-dock-right" },
],
selectMenuItemHandler: async ({ command }) => {
if (command === "insertChildNote") {