aboutsummaryrefslogtreecommitdiffhomepage
path: root/static/note.css
diff options
context:
space:
mode:
authorwinter2025-02-14 20:53:17 +0000
committerwinter2025-02-14 20:53:17 +0000
commitd10aad87ddebd4857a90b6d638aac803d7373dc6 (patch)
treeaf9fcb41b7cf25cc58372549f7640e35b01a144a /static/note.css
parent8a8e07c6239e5f33c79ddf63a3e4ac3065086037 (diff)
make attachments nicer
Diffstat (limited to 'static/note.css')
-rw-r--r--static/note.css14
1 files changed, 9 insertions, 5 deletions
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;