diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css index c9a34789b..f323d0000 100644 --- a/apps/client/src/stylesheets/theme-next/pages.css +++ b/apps/client/src/stylesheets/theme-next/pages.css @@ -151,6 +151,11 @@ --options-title-font-size: .75rem; --options-title-offset: 13px; } + +.note-split.options { + --preferred-max-content-width: var(--options-card-max-width); +} + /* Create a gap at the top of the option pages */ .note-detail-content-widget-content.options>*:first-child { margin-top: var(--options-first-item-top-margin, 1em); @@ -185,10 +190,6 @@ body.experimental-feature-new-layout .note-detail-content-widget-content.options padding: var(--options-card-padding); } -body.prefers-centered-content .options-section:not(.tn-no-card) { - margin-inline: auto; -} - body.desktop .options-section:not(.tn-no-card) { min-width: var(--options-card-min-width); max-width: var(--options-card-max-width); diff --git a/apps/client/src/translations/cn/translation.json b/apps/client/src/translations/cn/translation.json index 7a618514f..d26815f8c 100644 --- a/apps/client/src/translations/cn/translation.json +++ b/apps/client/src/translations/cn/translation.json @@ -29,7 +29,7 @@ "widget-render-error": { "title": "渲染自定义 React 小部件失败" }, - "widget-missing-parent": "自定义小部件未定义强制性的 \"{{property}}\" 属性。", + "widget-missing-parent": "自定义小部件未定义强制性的 \"{{property}}\" 属性。\n\n如果此脚本需要在没有 UI 元素的情况下运行,请改用“#run=frontendStartup”。", "open-script-note": "打开脚本笔记", "scripting-error": "自定义脚本错误:{{title}}" }, @@ -1597,7 +1597,11 @@ "note_detail": { "could_not_find_typewidget": "找不到类型为 '{{type}}' 的 typeWidget", "printing": "正在打印…", - "printing_pdf": "正在导出为PDF…" + "printing_pdf": "正在导出为PDF…", + "print_report_title": "打印报告", + "print_report_collection_content_other": "集合中的 {{count}} 篇笔记无法打印,因为它们不受支持或受到保护。", + "print_report_collection_details_button": "查看详情", + "print_report_collection_details_ignored_notes": "忽略的笔记" }, "note_title": { "placeholder": "请输入笔记标题...", diff --git a/apps/client/src/translations/ja/translation.json b/apps/client/src/translations/ja/translation.json index 7b4caea59..97e3499c1 100644 --- a/apps/client/src/translations/ja/translation.json +++ b/apps/client/src/translations/ja/translation.json @@ -29,7 +29,7 @@ "widget-render-error": { "title": "カスタム React ウィジェットのレンダリングに失敗しました" }, - "widget-missing-parent": "カスタムウィジェットに必須の '{{property}}' プロパティが定義されていません。", + "widget-missing-parent": "カスタムウィジェットに必須の '{{property}}' プロパティが定義されていません。\n\nこのスクリプトを UI 要素なしで実行する場合は、代わりに '#run=frontendStartup' を使用してください。", "open-script-note": "スクリプトノートを開く", "scripting-error": "カスタムスクリプトエラー: {{title}}" }, @@ -1930,7 +1930,11 @@ "note_detail": { "could_not_find_typewidget": "タイプ {{type}} の typeWidget が見つかりませんでした", "printing": "印刷中です...", - "printing_pdf": "PDF へのエクスポート中です..." + "printing_pdf": "PDF へのエクスポート中です...", + "print_report_title": "レポートを印刷", + "print_report_collection_content_other": "コレクション内の {{count}} 件のノートは、サポートされていないか保護されているため、印刷できませんでした。", + "print_report_collection_details_button": "詳細を見る", + "print_report_collection_details_ignored_notes": "無視されたノート" }, "watched_file_update_status": { "ignore_this_change": "この変更を無視する", diff --git a/apps/client/src/translations/ru/translation.json b/apps/client/src/translations/ru/translation.json index a88c00149..d3ec58a6d 100644 --- a/apps/client/src/translations/ru/translation.json +++ b/apps/client/src/translations/ru/translation.json @@ -29,7 +29,7 @@ "widget-render-error": { "title": "Не удалось отобразить пользовательский React виджет" }, - "widget-missing-parent": "В пользовательском виджете не определено обязательное свойство '{{property}}'.", + "widget-missing-parent": "В пользовательском виджете не определено обязательное свойство '{{property}}'.\n\nЕсли этот скрипт предназначен для запуска без элемента пользовательского интерфейса, используйте '#run=frontendStartup'.", "open-script-note": "Открыть заметку со скриптом", "scripting-error": "Ошибка пользовательского скрипта: {{title}}" }, @@ -2112,7 +2112,13 @@ "note_detail": { "could_not_find_typewidget": "Не удалось найти typeWidget для типа '{{type}}'", "printing_pdf": "Выполняется экспорт PDF...", - "printing": "Выполняется печать..." + "printing": "Выполняется печать...", + "print_report_title": "Отчет по печати", + "print_report_collection_content_one": "{{count}} заметка в коллекции не удалось распечатать, поскольку она не поддерживается или защищена.", + "print_report_collection_content_few": "{{count}} заметки в коллекции не удалось распечатать, поскольку они не поддерживаются или защищены.", + "print_report_collection_content_many": "{{count}} заметок в коллекции не удалось распечатать, поскольку они не поддерживаются или защищены.", + "print_report_collection_details_button": "Подробнее", + "print_report_collection_details_ignored_notes": "Пропущенные заметки" }, "book": { "no_children_help": "В этой коллекции нет дочерних заметок, поэтому отображать нечего. Подробности см. в wiki.", diff --git a/apps/client/src/widgets/collections/NoteList.css b/apps/client/src/widgets/collections/NoteList.css index f8e5ae14e..bdc6b3dc7 100644 --- a/apps/client/src/widgets/collections/NoteList.css +++ b/apps/client/src/widgets/collections/NoteList.css @@ -12,7 +12,7 @@ body.prefers-centered-content .note-list-widget:not(.full-height) { } .note-list-widget .note-list { - padding: 10px; + padding-block: 10px; } .note-list-widget.full-height, diff --git a/apps/client/src/widgets/containers/scrolling_container.css b/apps/client/src/widgets/containers/scrolling_container.css index b9af1ccde..36d277a17 100644 --- a/apps/client/src/widgets/containers/scrolling_container.css +++ b/apps/client/src/widgets/containers/scrolling_container.css @@ -2,6 +2,13 @@ overflow: auto; scroll-behavior: smooth; position: relative; + + > .inline-title, + > .note-detail > .note-detail-editable-text, + > .note-list-widget:not(.full-height) { + padding-inline: 24px; + } + } .note-split.type-code:not(.mime-text-x-sqlite) { diff --git a/apps/client/src/widgets/layout/InlineTitle.css b/apps/client/src/widgets/layout/InlineTitle.css index ff2bbd791..33ececc47 100644 --- a/apps/client/src/widgets/layout/InlineTitle.css +++ b/apps/client/src/widgets/layout/InlineTitle.css @@ -10,7 +10,6 @@ max-width: var(--max-content-width); container-type: inline-size; padding-top: 20px; - padding-inline-start: 24px; & > .inline-title-row { --icon-size: 35px; diff --git a/apps/client/src/widgets/layout/NoteTitleActions.css b/apps/client/src/widgets/layout/NoteTitleActions.css index db2810c1e..b1aa37d89 100644 --- a/apps/client/src/widgets/layout/NoteTitleActions.css +++ b/apps/client/src/widgets/layout/NoteTitleActions.css @@ -4,12 +4,21 @@ body.experimental-feature-new-layout { } .title-actions { + --title-actions-padding-start: 12px; + --title-actions-padding-end: 8px; + display: flex; + max-width: var(--max-content-width); flex-direction: column; gap: 0.5em; + padding-inline: var(--title-actions-padding-start) var(--title-actions-padding-end); + + body.prefers-centered-content .note-split:not(.full-content-width) & { + margin-inline: auto; + } &:not(:empty) { - padding: 0.75em 15px; + padding-block: 0.75em; } .edited-notes { @@ -40,5 +49,11 @@ body.experimental-feature-new-layout { padding: 0; } } + + > .collapsible, + > .note-type-switcher { + padding-inline-start: calc(24px - var(--title-actions-padding-start)); + padding-inline-end: calc(24px - var(--title-actions-padding-end)); + } } } diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsx index 738d1a922..3c852ba14 100644 --- a/apps/client/src/widgets/layout/StatusBar.tsx +++ b/apps/client/src/widgets/layout/StatusBar.tsx @@ -340,7 +340,7 @@ function AttributesButton({ note, attributesShown, setAttributesShown }: Attribu // React to note changes. useEffect(() => { - setCount(note.attributes.length); + setCount(note.getAttributes().filter(a => !a.isAutoLink).length); }, [ note ]); // React to changes in count. diff --git a/apps/client/src/widgets/type_widgets/text/EditableText.css b/apps/client/src/widgets/type_widgets/text/EditableText.css index a2e1af8c5..9927a65ee 100644 --- a/apps/client/src/widgets/type_widgets/text/EditableText.css +++ b/apps/client/src/widgets/type_widgets/text/EditableText.css @@ -1,6 +1,5 @@ .note-detail-editable-text { font-family: var(--detail-font-family); - padding-inline-start: 14px; height: 100%; } @@ -49,4 +48,8 @@ body.heading-style-underline .note-detail-editable-text h6 { border-bottom: 1px box-shadow: none !important; min-height: 50px; height: 100%; +} + +.note-detail-editable-text .ck.ck-editor__editable_inline { + padding: 0; } \ No newline at end of file