- Merge the comments side-panel header into the Open/Resolved tab row, then drop the now-redundant "Comments" title; the panel keeps its accessible name via the AppShell.Aside aria-label. - Overlay the close (X) button on the right of the tab row and nudge it up 4px to align with the tab labels; the tab list stays full-width so its bottom border line is preserved. The toc/details tabs keep their existing shared header and scroll area unchanged. - Quote block (.textSelection): increase top margin (2px -> 8px) so it no longer sticks to the timestamp when it is the first block, and add margin-left: 6px so the quote's left bar lines up with the comment body text left edge.
67 lines
1.8 KiB
CSS
67 lines
1.8 KiB
CSS
.focused-thread {
|
|
border: 2px solid #8d7249;
|
|
}
|
|
|
|
.textSelection {
|
|
/* Breathing room below the comment header (author + timestamp) so the
|
|
quote does not stick to the timestamp when it is the first block. */
|
|
margin-top: 8px;
|
|
/* Align the quote's left bar with the comment body text left edge
|
|
(the comment editor insets its text by 6px). */
|
|
margin-left: 6px;
|
|
border-left: 2px solid var(--mantine-color-gray-6);
|
|
padding: 6px;
|
|
background: var(--mantine-color-gray-light);
|
|
cursor: pointer;
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
-ms-word-break: break-word;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.commentEditor {
|
|
|
|
&[data-editable][data-surface="muted"] .ProseMirror:not(.focused) {
|
|
border-radius: var(--mantine-radius-sm);
|
|
box-shadow: 0 0 0 1px light-dark(var(--mantine-color-gray-5), var(--mantine-color-dark-4));
|
|
}
|
|
|
|
.focused {
|
|
border-radius: var(--mantine-radius-sm);
|
|
box-shadow: 0 0 0 2px var(--mantine-color-blue-3);
|
|
}
|
|
|
|
/* Denser comments: override the global 16px ProseMirror body size with 14px
|
|
and tighten the rhythm vs. the comment header. Scoped to the comment
|
|
editor only - the page editor is unaffected. */
|
|
.ProseMirror :global(.ProseMirror){
|
|
border-radius: var(--mantine-radius-sm);
|
|
max-width: 100%;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
font-size: var(--mantine-font-size-sm);
|
|
line-height: 1.4;
|
|
margin-top: 4px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
&[data-editable] .ProseMirror :global(.ProseMirror){
|
|
max-height: 50vh;
|
|
overflow: hidden auto;
|
|
}
|
|
|
|
.ProseMirror p {
|
|
margin-block-start: 0;
|
|
margin-block-end: 0;
|
|
}
|
|
|
|
.actions {
|
|
|
|
}
|
|
}
|
|
|