fixes and features

This commit is contained in:
Mateusz Gruszczyński
2026-07-23 13:47:17 +02:00
parent 3ed74b1eac
commit dc6227896b
21 changed files with 831 additions and 82 deletions
+69 -3
View File
@@ -218,8 +218,11 @@ dialog::backdrop { background: rgba(4,6,9,.82); }
.editor-shell textarea { padding-left: 18px; }
.line-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.line-toggle input { width: auto; min-height: auto; margin: 0; accent-color: var(--accent); }
.user-chip { display: inline-flex; align-items: center; gap: 7px; color: #dce2eb; font-size: .78rem; }
.user-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--owner, var(--accent)); }
.user-color-control { position: relative; display: inline-flex; align-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px; border: 0; border-radius: 7px; background: transparent; color: #dce2eb; font: inherit; font-size: .78rem; }
.user-chip:hover, .user-chip:focus-visible { background: var(--surface-2); outline: none; }
.user-chip__dot { width: 10px; height: 10px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--owner, var(--accent)) 72%, white); border-radius: 50%; background: var(--owner, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--owner, var(--accent)) 18%, transparent); }
.user-color-picker { position: absolute; top: calc(100% + 4px); left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.dialog-copy { margin: 0 0 4px; color: var(--muted); line-height: 1.5; }
.history-header h2 { margin: 0; }
.history-header p { margin: 4px 0 0; color: var(--muted-2); font-size: .75rem; }
@@ -230,7 +233,7 @@ dialog::backdrop { background: rgba(4,6,9,.82); }
.revision__preview { max-height: 180px; overflow: auto; margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: #0b0e13; color: #c9d0da; font: .72rem/1.5 ui-monospace, monospace; white-space: pre-wrap; }
.revision button + button { margin-left: 12px; }
.mermaid { overflow: auto; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #0a0d12; }
@media (max-width: 720px) { .line-gutter { width: 48px; padding-top: 18px; font-size: 15px; } .editor-shell textarea { padding: 18px 12px; font-size: 15px; } .user-chip { display: none; } }
@media (max-width: 720px) { .line-gutter { width: 48px; padding-top: 18px; font-size: 15px; } .editor-shell textarea { padding: 18px 12px; font-size: 15px; } .user-color-control { display: none; } }
.markdown-body img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 10px; }
.markdown-body a { overflow-wrap: anywhere; }
@@ -549,3 +552,66 @@ dialog::backdrop { background: rgba(4,6,9,.82); }
.resource-delete-confirm > p:first-child { margin: 0; }
@media (max-width: 640px) { .resource-main { align-items: flex-start; flex-direction: column; } .resource-actions { width: 100%; } }
.resource-row { align-items: stretch; flex-direction: column; }
/* Stable scrolling and collapsible Markdown sections. */
.editor-shell { width: 100%; max-width: 100%; }
.editor-shell textarea { min-width: 0; max-width: 100%; overscroll-behavior: contain; overflow-anchor: none; }
.line-gutter { position: relative; z-index: 5; flex: none; }
.preview, .editor-shell textarea { scrollbar-gutter: stable; }
.markdown-details { margin: .65em 0; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.015); }
.markdown-details > summary { padding: .55em .8em; color: var(--text); font-weight: 650; cursor: pointer; user-select: none; }
.markdown-details[open] > summary { border-bottom: 1px solid var(--border); }
.markdown-details__content { padding: .35em .8em .7em; }
.markdown-details__content > :first-child { margin-top: 0; }
.markdown-details__content > :last-child { margin-bottom: 0; }
/* Full-height editor: keep header/footer visible and scroll only the work area. */
.pad-page { height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pad-page .app-header { min-width: 0; }
.pad-page .editor-layout { height: auto; min-height: 0; overflow: hidden; }
.pad-page .editor-panel { min-height: 0; overflow: hidden; }
.pad-page .workspace { min-height: 0; overflow: hidden; }
.pad-page .editor-column,
.pad-page .preview-column,
.pad-page .editor-shell { min-height: 0; overflow: hidden; }
.pad-page .editor-shell textarea,
.pad-page .preview { height: 100%; min-height: 0; overflow: auto; }
.pad-page .editor-footer { position: relative; z-index: 8; flex: none; background: var(--surface); }
@media (max-width: 980px) {
.pad-page .editor-layout { height: auto; }
}
/* A collapsible section has one source-line marker; its rendered Markdown does not repeat line numbers inside. */
.markdown-details__content .preview-source-line::before { display: none; }
.markdown-details__content { overflow: visible; }
.markdown-details__content pre { overflow: auto; }
/* Ephemeral room presence and chat */
.room-details { position: relative; display: inline-block; }
.room-details > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); list-style: none; }
.room-details > summary::-webkit-details-marker { display: none; }
.chat-unread { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.room-popover { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 40; display: grid; grid-template-columns: 150px minmax(280px, 380px); width: min(560px, calc(100vw - 24px)); max-height: min(430px, 70vh); overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 18px 50px rgb(0 0 0 / .38); color: var(--text); }
.room-users { padding: 14px; overflow: auto; border-right: 1px solid var(--border); }
.room-users strong, .room-chat__head strong { display: block; margin-bottom: 8px; font-size: .75rem; }
.room-users ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.room-users li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.room-chat { display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; min-height: 280px; }
.room-chat__head { padding: 12px 14px 8px; border-bottom: 1px solid var(--border); }
.room-chat__head strong { margin: 0; }
.room-chat__head span { color: var(--muted-2); font-size: .66rem; }
.chat-messages { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 12px 14px; }
.chat-message { margin: 0; overflow-wrap: anywhere; line-height: 1.35; }
.chat-message strong { margin-right: 6px; color: var(--text); }
.chat-message span { color: var(--muted); }
.chat-empty { margin: auto; color: var(--muted-2); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-form input { min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); }
.chat-form button { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
@media (max-width: 700px) { .room-popover { grid-template-columns: 1fr; left: auto; right: -120px; } .room-users { max-height: 110px; border-right: 0; border-bottom: 1px solid var(--border); } }
.room-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-user__dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--owner, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--owner, var(--accent)) 18%, transparent); }
.room-user > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-message a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.chat-message a:hover { filter: brightness(1.15); }