mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-09 19:43:01 -06:00
feat(layout): respect content width for title
This commit is contained in:
parent
e2b6d0c256
commit
394f6c3110
@ -28,3 +28,12 @@ body.mobile .note-title-widget input.note-title {
|
||||
body.desktop .note-title-widget input.note-title {
|
||||
font-size: 180%;
|
||||
}
|
||||
|
||||
body.experimental-feature-new-layout .title-row {
|
||||
margin-top: 1em;
|
||||
max-width: var(--max-content-width);
|
||||
}
|
||||
|
||||
body.experimental-feature-new-layout.prefers-centered-content .title-row {
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@ import FormattingToolbar from "./FormattingToolbar";
|
||||
import options from "../../services/options";
|
||||
import { t } from "../../services/i18n";
|
||||
import { TabConfiguration } from "./ribbon-interface";
|
||||
import { isExperimentalFeatureEnabled } from "../../services/experimental_features";
|
||||
|
||||
export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [
|
||||
{
|
||||
@ -23,6 +24,7 @@ export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [
|
||||
icon: "bx bx-text",
|
||||
show: async ({ note, noteContext }) => note?.type === "text"
|
||||
&& options.get("textNoteEditorType") === "ckeditor-classic"
|
||||
&& !isExperimentalFeatureEnabled("new-layout")
|
||||
&& !(await noteContext?.isReadOnly()),
|
||||
toggleCommand: "toggleRibbonTabClassicEditor",
|
||||
content: FormattingToolbar,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user