Skip to content

Build your personal knowledge base with Trilium Notes

chore(mobile/custom_note_actions): hide open note externally

Elian Doranff9ec2057ba9
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index f05441db3a..e3d3f5279f 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -2637,10 +2637,10 @@ iframe.print-iframe {
}
}
- #root-widget.virtual-keyboard-opened .note-split:not(:focus-within) {
+ /* #root-widget.virtual-keyboard-opened .note-split:not(:focus-within) {
max-height: 80px;
opacity: 0.4;
- }
+ } */
}
}
diff --git a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx
index 8ce9592406..7de9fdf08b 100644
--- a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx
+++ b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx
@@ -35,6 +35,8 @@ interface NoteActionsCustomInnerProps extends NoteActionsCustomProps {
viewType: ViewTypeOptions | null | undefined;
}
+const cachedIsMobile = isMobile();
+
/**
* Part of {@link NoteActions} on the new layout, but are rendered with a slight spacing
* from the rest of the note items and the buttons differ based on the note type.
@@ -128,7 +130,7 @@ function UploadNewRevisionButton({ note, onChange }: NoteActionsCustomInnerProps
}
function OpenExternallyButton({ note, noteMime }: NoteActionsCustomInnerProps) {
- return (
+ return (!cachedIsMobile &&
<NoteAction
icon="bx bx-link-external"
text={t("file_properties.open")}
@@ -261,7 +263,6 @@ function AddChildButton({ parentComponent, noteType, ntxId, isReadOnly }: NoteAc
}
}
//#endregion
-const cachedIsMobile = isMobile();
function NoteAction({ text, ...props }: Pick<ActionButtonProps, "text" | "icon" | "disabled" | "triggerCommand"> & {
onClick?: ((e: MouseEvent) => void) | undefined;