aboutsummaryrefslogtreecommitdiffhomepage
path: root/static/note.css
diff options
context:
space:
mode:
authorwinter2025-01-19 15:55:27 +0000
committerwinter2025-01-19 15:55:27 +0000
commit77ba95515ed32c1a209ae341b4f716dbcd46f2a6 (patch)
treec21fe8cada4a22c2c89f9d9e5755551f5be96c0b /static/note.css
parent3fe0b3e7938bdb3781fec13784c0b7f943a899c0 (diff)
sort out a bunch of text overflow issues
Diffstat (limited to 'static/note.css')
-rw-r--r--static/note.css15
1 files changed, 14 insertions, 1 deletions
diff --git a/static/note.css b/static/note.css
index a9cbce8..7e0f529 100644
--- a/static/note.css
+++ b/static/note.css
@@ -39,6 +39,11 @@ article.note {
display: grid;
grid-template-columns: max-content 1fr;
gap: var(--spacing-double);
+ overflow: hidden;
+
+ > * {
+ min-width: 0;
+ }
img.avatar {
width: var(--avatar-size);
@@ -53,6 +58,9 @@ article.note {
.content {
font-size: var(--font-normal-size);
padding: var(--spacing-half) 0;
+ hyphens: auto;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
.selected & {
font-size: var(--font-big-size);
}
@@ -70,15 +78,19 @@ article.note {
.infoLine {
display: grid;
- grid-template-columns: max-content 1fr max-content max-content;
+ grid-template-columns: auto 1fr auto max-content;
align-items: baseline;
margin-bottom: var(--spacing-half);
gap: var(--spacing-single);
+ max-width: 100%;
.authorName {
font-weight: bold;
color: inherit;
text-decoration: none;
+ text-overflow: ellipsis;
+ text-wrap: nowrap;
+ overflow: hidden;
&:hover {
text-decoration: underline;
}
@@ -88,6 +100,7 @@ article.note {
font-size: var(--font-small-size);
text-overflow: ellipsis;
overflow: hidden;
+ text-wrap: nowrap;
}
a.timestamp {
color: inherit;