diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-04 14:08:01 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-04 14:32:52 -0500 |
| commit | 23c84c81be796a741da5d61d41760b1efdd13840 (patch) | |
| tree | 88fbe8e0f5d03a648f640c1bd2f9c5c6346b3683 /ui/lib | |
| parent | 2544de46eed6fd9493eff6e2d41a8aa5d169bf51 (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.svelte | 8 |
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; |
