Merge branch 'main' into feature/icon_packs

This commit is contained in:
Elian Doran 2025-12-28 23:09:34 +02:00 committed by GitHub
commit 490c539d63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 54 additions and 15 deletions

View File

@ -151,6 +151,11 @@
--options-title-font-size: .75rem; --options-title-font-size: .75rem;
--options-title-offset: 13px; --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 */ /* Create a gap at the top of the option pages */
.note-detail-content-widget-content.options>*:first-child { .note-detail-content-widget-content.options>*:first-child {
margin-top: var(--options-first-item-top-margin, 1em); 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); 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) { body.desktop .options-section:not(.tn-no-card) {
min-width: var(--options-card-min-width); min-width: var(--options-card-min-width);
max-width: var(--options-card-max-width); max-width: var(--options-card-max-width);

View File

@ -29,7 +29,7 @@
"widget-render-error": { "widget-render-error": {
"title": "渲染自定义 React 小部件失败" "title": "渲染自定义 React 小部件失败"
}, },
"widget-missing-parent": "自定义小部件未定义强制性的 \"{{property}}\" 属性。", "widget-missing-parent": "自定义小部件未定义强制性的 \"{{property}}\" 属性。\n\n如果此脚本需要在没有 UI 元素的情况下运行,请改用“#run=frontendStartup”。",
"open-script-note": "打开脚本笔记", "open-script-note": "打开脚本笔记",
"scripting-error": "自定义脚本错误:{{title}}" "scripting-error": "自定义脚本错误:{{title}}"
}, },
@ -1597,7 +1597,11 @@
"note_detail": { "note_detail": {
"could_not_find_typewidget": "找不到类型为 '{{type}}' 的 typeWidget", "could_not_find_typewidget": "找不到类型为 '{{type}}' 的 typeWidget",
"printing": "正在打印…", "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": { "note_title": {
"placeholder": "请输入笔记标题...", "placeholder": "请输入笔记标题...",

View File

@ -29,7 +29,7 @@
"widget-render-error": { "widget-render-error": {
"title": "カスタム React ウィジェットのレンダリングに失敗しました" "title": "カスタム React ウィジェットのレンダリングに失敗しました"
}, },
"widget-missing-parent": "カスタムウィジェットに必須の '{{property}}' プロパティが定義されていません。", "widget-missing-parent": "カスタムウィジェットに必須の '{{property}}' プロパティが定義されていません。\n\nこのスクリプトを UI 要素なしで実行する場合は、代わりに '#run=frontendStartup' を使用してください。",
"open-script-note": "スクリプトノートを開く", "open-script-note": "スクリプトノートを開く",
"scripting-error": "カスタムスクリプトエラー: {{title}}" "scripting-error": "カスタムスクリプトエラー: {{title}}"
}, },
@ -1930,7 +1930,11 @@
"note_detail": { "note_detail": {
"could_not_find_typewidget": "タイプ {{type}} の typeWidget が見つかりませんでした", "could_not_find_typewidget": "タイプ {{type}} の typeWidget が見つかりませんでした",
"printing": "印刷中です...", "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": { "watched_file_update_status": {
"ignore_this_change": "この変更を無視する", "ignore_this_change": "この変更を無視する",

View File

@ -29,7 +29,7 @@
"widget-render-error": { "widget-render-error": {
"title": "Не удалось отобразить пользовательский React виджет" "title": "Не удалось отобразить пользовательский React виджет"
}, },
"widget-missing-parent": "В пользовательском виджете не определено обязательное свойство '{{property}}'.", "widget-missing-parent": "В пользовательском виджете не определено обязательное свойство '{{property}}'.\n\nЕсли этот скрипт предназначен для запуска без элемента пользовательского интерфейса, используйте '#run=frontendStartup'.",
"open-script-note": "Открыть заметку со скриптом", "open-script-note": "Открыть заметку со скриптом",
"scripting-error": "Ошибка пользовательского скрипта: {{title}}" "scripting-error": "Ошибка пользовательского скрипта: {{title}}"
}, },
@ -2112,7 +2112,13 @@
"note_detail": { "note_detail": {
"could_not_find_typewidget": "Не удалось найти typeWidget для типа '{{type}}'", "could_not_find_typewidget": "Не удалось найти typeWidget для типа '{{type}}'",
"printing_pdf": "Выполняется экспорт PDF...", "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": { "book": {
"no_children_help": "В этой коллекции нет дочерних заметок, поэтому отображать нечего. Подробности см. в <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a>.", "no_children_help": "В этой коллекции нет дочерних заметок, поэтому отображать нечего. Подробности см. в <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a>.",

View File

@ -12,7 +12,7 @@ body.prefers-centered-content .note-list-widget:not(.full-height) {
} }
.note-list-widget .note-list { .note-list-widget .note-list {
padding: 10px; padding-block: 10px;
} }
.note-list-widget.full-height, .note-list-widget.full-height,

View File

@ -2,6 +2,13 @@
overflow: auto; overflow: auto;
scroll-behavior: smooth; scroll-behavior: smooth;
position: relative; 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) { .note-split.type-code:not(.mime-text-x-sqlite) {

View File

@ -10,7 +10,6 @@
max-width: var(--max-content-width); max-width: var(--max-content-width);
container-type: inline-size; container-type: inline-size;
padding-top: 20px; padding-top: 20px;
padding-inline-start: 24px;
& > .inline-title-row { & > .inline-title-row {
--icon-size: 35px; --icon-size: 35px;

View File

@ -4,12 +4,21 @@ body.experimental-feature-new-layout {
} }
.title-actions { .title-actions {
--title-actions-padding-start: 12px;
--title-actions-padding-end: 8px;
display: flex; display: flex;
max-width: var(--max-content-width);
flex-direction: column; flex-direction: column;
gap: 0.5em; 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) { &:not(:empty) {
padding: 0.75em 15px; padding-block: 0.75em;
} }
.edited-notes { .edited-notes {
@ -40,5 +49,11 @@ body.experimental-feature-new-layout {
padding: 0; 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));
}
} }
} }

View File

@ -340,7 +340,7 @@ function AttributesButton({ note, attributesShown, setAttributesShown }: Attribu
// React to note changes. // React to note changes.
useEffect(() => { useEffect(() => {
setCount(note.attributes.length); setCount(note.getAttributes().filter(a => !a.isAutoLink).length);
}, [ note ]); }, [ note ]);
// React to changes in count. // React to changes in count.

View File

@ -1,6 +1,5 @@
.note-detail-editable-text { .note-detail-editable-text {
font-family: var(--detail-font-family); font-family: var(--detail-font-family);
padding-inline-start: 14px;
height: 100%; height: 100%;
} }
@ -49,4 +48,8 @@ body.heading-style-underline .note-detail-editable-text h6 { border-bottom: 1px
box-shadow: none !important; box-shadow: none !important;
min-height: 50px; min-height: 50px;
height: 100%; height: 100%;
}
.note-detail-editable-text .ck.ck-editor__editable_inline {
padding: 0;
} }