chore(frontend): add Tiptap placeholder CSS and lock Tiptap deps
Some checks failed
CI / Unit & Component Tests (push) Failing after 3m30s
CI / OCR Service Tests (push) Successful in 41s
CI / Backend Unit Tests (push) Failing after 3m10s
CI / Unit & Component Tests (pull_request) Failing after 3m11s
CI / OCR Service Tests (pull_request) Successful in 38s
CI / Backend Unit Tests (pull_request) Failing after 3m4s

Placeholder uses ::before pseudo-element on the contenteditable's
data-placeholder attribute, only visible when the editor is unfocused
and empty. Removes the default ProseMirror focus ring since the outer
wrapper provides its own.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-29 15:54:26 +02:00
parent 7a25feb04e
commit 392af640c4
2 changed files with 317 additions and 0 deletions

View File

@@ -416,6 +416,23 @@
}
}
/* ─── Tiptap editor ─────────────────────────────────────────────────────────── */
/* Placeholder: shown on the inner contenteditable when the editor is empty
and unfocused. Uses the data-placeholder attribute set via editorProps. */
.tiptap-editor-inner[data-placeholder]:not(:focus)::before {
content: attr(data-placeholder);
color: var(--c-ink-3);
pointer-events: none;
float: left;
height: 0;
}
/* Remove default ProseMirror focus ring — the outer wrapper has its own. */
.tiptap-editor-inner:focus {
outline: none;
}
@keyframes slide {
0% {
transform: translateX(-100%);