Skip to content

Build your personal knowledge base with Trilium Notes

926 B
Raw Blame
.scrolling-container {
    --content-margin-inline: 24px;

    overflow: auto;
    scroll-behavior: smooth;
    position: relative;

    > .note-detail > .note-detail-editable-text > .note-detail-editable-text-editor,
    > .note-list-widget:not(.full-height) .note-list-wrapper {
        margin-inline: var(--content-margin-inline);
    }

    > .inline-title {
        padding-inline: var(--content-margin-inline);
    }

    > .note-detail > .note-detail-editable-text > .note-detail-editable-text-editor {
        overflow: unset;
    }
}

body.mobile .scrolling-container {
    --content-margin-inline: 8px;
}

/* Programmatic jumps in a code note (go to line, search, scroll to end) can travel through the
   whole document; animating them makes CodeMirror render and discard every viewport along the
   way, so they land instantly instead. */
.note-split.type-code > .scrolling-container {
    scroll-behavior: auto;
}