From 7706acaafa89691dba33c216e6287a8405c4c302 Mon Sep 17 00:00:00 2001 From: polwex Date: Tue, 18 Nov 2025 08:32:45 +0700 Subject: gui fixes to nostr post rendering, added nostr-tools lib for primal compatibility --- gui/src/styles/styles.css | 12 ++++++++++++ gui/src/styles/trill.css | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'gui/src/styles') diff --git a/gui/src/styles/styles.css b/gui/src/styles/styles.css index c105656..ac3c71b 100644 --- a/gui/src/styles/styles.css +++ b/gui/src/styles/styles.css @@ -555,6 +555,13 @@ h6 { & .author { flex: unset; gap: 0; + margin: 0.7rem 0.3rem; + font-weight: 700; + flex-grow: 1; + + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; & .name { display: flex; @@ -566,6 +573,11 @@ h6 { } } + post-body { + max-height: 300px; + overflow-y: auto; + } + & .date { color: grey; } diff --git a/gui/src/styles/trill.css b/gui/src/styles/trill.css index 0a21ed5..0b1650c 100644 --- a/gui/src/styles/trill.css +++ b/gui/src/styles/trill.css @@ -25,10 +25,6 @@ /* min-height: 150px; */ } -.trill-post .author { - flex: 1 0 auto; -} - .trill-reply-thread { border-top: 1px solid var(--text-color); } @@ -74,14 +70,6 @@ font-size: 1rem; } -.trill-post .p-only { - margin: 0.7rem 0.3rem; - font-weight: 700; -} - -.trill-post .p { - /* margin-top: -5px; */ -} .trill-post a { text-decoration: 0; -- cgit v1.2.3