From d10aad87ddebd4857a90b6d638aac803d7373dc6 Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 14 Feb 2025 20:53:17 +0000 Subject: make attachments nicer --- static/note.css | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'static/note.css') diff --git a/static/note.css b/static/note.css index bc9b2d8..fd281b0 100644 --- a/static/note.css +++ b/static/note.css @@ -164,17 +164,20 @@ article.note { box-sizing: border-box; gap: var(--spacing-single); - &:has(:nth-child(2)) { + &:has(> :nth-child(2)) { grid-template-columns: auto auto; + a.file { + width: 100%; + } } - &:has(:nth-child(3)) { + &:has(> :nth-child(3)) { grid-template-columns: auto auto auto; } - &:has(:nth-child(4)) { + &:has(> :nth-child(4)) { grid-template-columns: auto auto; grid-template-rows: auto auto; } - &:has(:nth-child(5)) { + &:has(> :nth-child(5)) { grid-template-columns: unset; grid-template-rows: auto; grid-auto-flow: column; @@ -203,8 +206,9 @@ article.note { color: var(--clr-foreground); text-decoration: none; padding: var(--spacing-single); + padding-right: var(--spacing-double); display: grid; - width: 100%; + width: min(max-content, 100%); box-sizing: border-box; grid-auto-flow: column; align-items: center; -- cgit v1.3