fix(editor): placeholder titre "New Page" + aides de bloc au focus seul
FlowDeck CI / test (push) Failing after 14s
FlowDeck CI / docker (push) Skipped

- Titre : data-placeholder="New Page" + bascule .empty a l'input (mecanisme des
  blocs). Le placeholder s'affiche en gris pale quand le titre est vide, y compris
  apres effacement. save() stocke un titre vide (plus de "New page" force), la
  sidebar garde son fallback, duplicatePage retombe sur "New Page".
- Blocs : les placeholders ("Press 'space' for AI...", "Heading 1", "List"...)
  passent sous :focus-within -> ne s'affichent que quand le bloc est focalise.
  Idem pour "Type code..." du bloc code.

v5.1.6
This commit is contained in:
2026-09-07 12:25:29 -04:00
parent d96fb4171e
commit 3956f1ffa5
6 changed files with 38 additions and 11 deletions
+7 -6
View File
@@ -2205,9 +2205,11 @@ button.breadcrumb-current { max-width: 260px; }
border: none;
word-break: break-word;
}
.page-title-input.empty::before,
.page-title-input:empty::before {
content: 'New page';
color: var(--text-dim);
content: attr(data-placeholder);
color: var(--text-secondary);
opacity: .75;
pointer-events: none;
}
@@ -2334,8 +2336,7 @@ button.breadcrumb-current { max-width: 260px; }
min-height: 28px;
word-break: break-word;
}
.block-content [data-bid].empty::before,
.block-content.empty::before {
.block-content:focus-within [data-bid].empty::before {
content: attr(data-placeholder);
color: var(--text-secondary);
opacity: .75;
@@ -2496,9 +2497,9 @@ button.breadcrumb-current { max-width: 260px; }
display: block;
min-height: 28px;
}
.block-code code:empty::before {
.block-code:focus-within code:empty::before {
content: 'Type code...';
color: var(--text-dim);
color: var(--text-secondary);
}
/* Divider */