diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css index f9f88c395..5d5bd2387 100644 --- a/apps/client/src/stylesheets/theme-next/base.css +++ b/apps/client/src/stylesheets/theme-next/base.css @@ -99,6 +99,14 @@ --tree-item-dark-theme-min-color-lightness: 65; } +body { + user-select: none; +} + +.selectable-text { + user-select: text; +} + body.backdrop-effects-disabled { /* Backdrop effects are disabled, replace the menu background color with the * no-backdrop fallback color */ diff --git a/apps/client/src/widgets/dialogs/about.tsx b/apps/client/src/widgets/dialogs/about.tsx index 7fa9c2390..f09cca319 100644 --- a/apps/client/src/widgets/dialogs/about.tsx +++ b/apps/client/src/widgets/dialogs/about.tsx @@ -31,29 +31,29 @@ export default function AboutDialog() { {t("about.homepage")} - https://github.com/TriliumNext/Trilium + https://github.com/TriliumNext/Trilium {t("about.app_version")} - {appInfo?.appVersion} + {appInfo?.appVersion} {t("about.db_version")} - {appInfo?.dbVersion} + {appInfo?.dbVersion} {t("about.sync_version")} - {appInfo?.syncVersion} + {appInfo?.syncVersion} {t("about.build_date")} - + {appInfo?.buildDate ? formatDateTime(appInfo.buildDate) : ""} {t("about.build_revision")} - + {appInfo?.buildRevision && {appInfo.buildRevision}} @@ -76,8 +76,8 @@ function DirectoryLink({ directory, style }: { directory: string, style?: CSSPro openService.openDirectory(directory); }; - return {directory} + return {directory} } else { - return {directory}; + return {directory}; } } diff --git a/apps/client/src/widgets/dialogs/revisions.tsx b/apps/client/src/widgets/dialogs/revisions.tsx index 0effd8b08..e20c4c978 100644 --- a/apps/client/src/widgets/dialogs/revisions.tsx +++ b/apps/client/src/widgets/dialogs/revisions.tsx @@ -208,7 +208,7 @@ function RevisionPreview({noteContent, revisionItem, showDiff, setShown, onRevis } )} -
+
diff --git a/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx b/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx index 4777f4349..76a197279 100644 --- a/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx @@ -17,24 +17,24 @@ export default function FilePropertiesTab({ note }: { note?: FNote | null }) { return (
{note && ( - +
- - - - + + + + - - - - + + + + - + )) ) : ( diff --git a/apps/client/src/widgets/type_widgets/options/text_notes.tsx b/apps/client/src/widgets/type_widgets/options/text_notes.tsx index 0dd102145..6179b5bc7 100644 --- a/apps/client/src/widgets/type_widgets/options/text_notes.tsx +++ b/apps/client/src/widgets/type_widgets/options/text_notes.tsx @@ -226,7 +226,7 @@ function CodeBlockPreview({ theme, wordWrap }: { theme: string, wordWrap: boolea return (
-
+            
                 
             
diff --git a/apps/client/src/widgets/type_widgets/text/ReadOnlyText.tsx b/apps/client/src/widgets/type_widgets/text/ReadOnlyText.tsx index 13b56bd5b..e23380030 100644 --- a/apps/client/src/widgets/type_widgets/text/ReadOnlyText.tsx +++ b/apps/client/src/widgets/type_widgets/text/ReadOnlyText.tsx @@ -55,7 +55,7 @@ export default function ReadOnlyText({ note, noteContext, ntxId }: TypeWidgetPro <>
{t("file_properties.note_id")}:{note.noteId}{t("file_properties.original_file_name")}:{originalFileName ?? "?"}{t("file_properties.note_id")}:{note.noteId}{t("file_properties.original_file_name")}:{originalFileName ?? "?"}
{t("file_properties.file_type")}:{note.mime}{t("file_properties.file_size")}:{formatSize(blob?.contentLength ?? 0)}{t("file_properties.file_type")}:{note.mime}{t("file_properties.file_size")}:{formatSize(blob?.contentLength ?? 0)}
-
+
diff --git a/apps/client/src/widgets/ribbon/InheritedAttributesTab.tsx b/apps/client/src/widgets/ribbon/InheritedAttributesTab.tsx index d9eb32b7f..bc6f3eb49 100644 --- a/apps/client/src/widgets/ribbon/InheritedAttributesTab.tsx +++ b/apps/client/src/widgets/ribbon/InheritedAttributesTab.tsx @@ -37,7 +37,7 @@ export default function InheritedAttributesTab({ note, componentId }: TabContext return (
-
+
{inheritedAttributes?.length ? ( joinElements(inheritedAttributes.map(attribute => (
{t("note_info_widget.note_id")}: - {note.noteId} + {note.noteId}
{t("note_info_widget.created")}: - {formatDateTime(metadata?.dateCreated)} + {formatDateTime(metadata?.dateCreated)}
{t("note_info_widget.modified")}: - {formatDateTime(metadata?.dateModified)} + {formatDateTime(metadata?.dateModified)}
{t("note_info_widget.type")}: {note.type}{' '} - {note.mime && ({note.mime})} + {note.mime && ({note.mime})}
@@ -77,7 +77,7 @@ export default function NoteInfoTab({ note }: TabContext) { /> )} - + {formatSize(noteSizeResponse?.noteSize)} {" "} {subtreeSizeResponse && subtreeSizeResponse.subTreeNoteCount > 1 && diff --git a/apps/client/src/widgets/type_widgets/Doc.css b/apps/client/src/widgets/type_widgets/Doc.css index 0081da3c7..3dc440bcf 100644 --- a/apps/client/src/widgets/type_widgets/Doc.css +++ b/apps/client/src/widgets/type_widgets/Doc.css @@ -1,5 +1,6 @@ .note-detail-doc-content { padding: 15px; + user-select: text; } .note-detail-doc-content pre { diff --git a/apps/client/src/widgets/type_widgets/options/backup.tsx b/apps/client/src/widgets/type_widgets/options/backup.tsx index 5cf240bf9..2f1a2d63b 100644 --- a/apps/client/src/widgets/type_widgets/options/backup.tsx +++ b/apps/client/src/widgets/type_widgets/options/backup.tsx @@ -104,7 +104,7 @@ export function BackupList({ backups }: { backups: DatabaseBackup[] }) { backups.map(({ mtime, filePath }) => (
{mtime ? formatDateTime(mtime) : "-"}{filePath}{filePath}