From e03bf6ee945c7a714d1e2899904e167720860eb6 Mon Sep 17 00:00:00 2001 From: Valentin Millet Date: Tue, 15 Sep 2026 00:04:37 +0200 Subject: [PATCH] Give a card's body the line the badge row was taking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The language badge owned a row of its own above the title: ~17px plus an 8px margin out of the 122px a card has, spent before a character of body. Badge, title and marks now share one line. The title gains the line budget it never had — clamped at two — and the head reserves a gutter for the selection tick, which floats at left: 8px and sat on the badge whenever a card was ticked. Co-Authored-By: Claude Opus 5 --- .../note-card/note-card.component.html | 54 ++++++++++--------- .../note-card/note-card.component.scss | 38 +++++++++++-- .../note-card/note-card.component.spec.ts | 23 ++++++-- .../note-card/note-card.component.ts | 3 +- 4 files changed, 84 insertions(+), 34 deletions(-) diff --git a/src/app/notes/canvas/note-section/note-card/note-card.component.html b/src/app/notes/canvas/note-section/note-card/note-card.component.html index 2f7903e..948d254 100644 --- a/src/app/notes/canvas/note-section/note-card/note-card.component.html +++ b/src/app/notes/canvas/note-section/note-card/note-card.component.html @@ -24,36 +24,40 @@ information does not exist for a screen reader. --> {{ 'notes.pinnedState' | transloco }} } - + + @if (!isChecklist()) { } - @if (hasPlaceholders()) { - - - {{ 'notes.placeholdersCount' | transloco: { count: note().placeholders.length } }} - - } - @if (note().attachmentCount > 0) { - - - {{ 'notes.attachmentsCount' | transloco: { count: note().attachmentCount } }} - - } - @if (note().pinned) { - - } - - - @if (note().title) { - {{ note().title }} - } @else { - {{ 'notes.untitled' | transloco }} - } + + @if (note().title) { + {{ note().title }} + } @else { + {{ 'notes.untitled' | transloco }} + } + + + @if (hasPlaceholders()) { + + + {{ 'notes.placeholdersCount' | transloco: { count: note().placeholders.length } }} + + } + @if (note().attachmentCount > 0) { + + + {{ 'notes.attachmentsCount' | transloco: { count: note().attachmentCount } }} + + } + @if (note().pinned) { + + } + @if (isChecklist()) { diff --git a/src/app/notes/canvas/note-section/note-card/note-card.component.scss b/src/app/notes/canvas/note-section/note-card/note-card.component.scss index 2af8bde..839efcc 100644 --- a/src/app/notes/canvas/note-section/note-card/note-card.component.scss +++ b/src/app/notes/canvas/note-section/note-card/note-card.component.scss @@ -50,27 +50,55 @@ app-copy-button:focus-within { // The children are s — the parent