From ff9199aea280d665bb6788ec9b0edb878a3d36ae Mon Sep 17 00:00:00 2001 From: Valentin Millet Date: Tue, 15 Sep 2026 01:01:37 +0200 Subject: [PATCH] Give a card title its width back, and plant the pin in the corner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merging the badge onto the title's line made the title a flex column between the badge and the marks: 76px of a 224px card, where a row of its own had given it 196. The head is a text block now, so the title flows past the badge and its second line runs the full width — 136px, measured. The pin leaves the line of text for the card's top-right corner, outside the band the copy and menu buttons occupy on hover. Co-Authored-By: Claude Opus 5 --- .../note-card/note-card.component.html | 29 +++--- .../note-card/note-card.component.scss | 92 +++++++++++-------- .../note-card/note-card.component.spec.ts | 28 ++++-- 3 files changed, 94 insertions(+), 55 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 ea1d156..a919cea 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,21 +24,16 @@ information does not exist for a screen reader. --> {{ 'notes.pinnedState' | transloco }} } - + @if (!isChecklist()) { } - - @if (note().title) { - {{ note().title }} - } @else { - {{ 'notes.untitled' | transloco }} - } - @if (hasPlaceholders()) { @@ -54,8 +49,12 @@ {{ 'notes.attachmentsCount' | transloco: { count: note().attachmentCount } }} } - @if (note().pinned) { - + + + @if (note().title) { + {{ note().title }} + } @else { + {{ 'notes.untitled' | transloco }} } @@ -103,6 +102,14 @@ + + @if (note().pinned) { + + } +