summaryrefslogtreecommitdiff
path: root/ui/lib
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-11-04 14:08:01 -0500
committerKit La Touche <kit@transneptune.net>2024-11-04 14:32:52 -0500
commit23c84c81be796a741da5d61d41760b1efdd13840 (patch)
tree88fbe8e0f5d03a648f640c1bd2f9c5c6346b3683 /ui/lib
parent2544de46eed6fd9493eff6e2d41a8aa5d169bf51 (diff)
Fix width and scrolling
This is some jinbodger CSS. I really need to do a unified-CSS sweep. I start to see why per-component CSS is bad, too; there are so many long-distance interactions needed!
Diffstat (limited to 'ui/lib')
-rw-r--r--ui/lib/components/Message.svelte8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/lib/components/Message.svelte b/ui/lib/components/Message.svelte
index f0e7045..ea6e304 100644
--- a/ui/lib/components/Message.svelte
+++ b/ui/lib/components/Message.svelte
@@ -25,6 +25,14 @@
.message:hover .timestamp {
display: flex;
}
+ .message-body {
+ overflow: auto;
+ max-width: 80vw;
+ @media (width > 640px) {
+ /* 21rem is width of the nav bar in full-screen mode. */
+ max-width: calc(90vw - 21rem);
+ }
+ }
.message-body:empty:after {
content: '.';
visibility: hidden;