diff options
| author | Kit La Touche <kit@transneptune.net> | 2025-01-01 18:09:46 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2025-01-01 18:09:46 -0500 |
| commit | c9b3394e9fc2cf6eb505ab03a6479eae996ed6e9 (patch) | |
| tree | c536430d2fb2e4093fb3b09cbda04369b68a6911 /ui/lib/components/MessageRun.svelte | |
| parent | 628337f3afcd5125299cbf620832779ab209022b (diff) | |
Just oh so many styles
Diffstat (limited to 'ui/lib/components/MessageRun.svelte')
| -rw-r--r-- | ui/lib/components/MessageRun.svelte | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/ui/lib/components/MessageRun.svelte b/ui/lib/components/MessageRun.svelte index 6cad381..09388ac 100644 --- a/ui/lib/components/MessageRun.svelte +++ b/ui/lib/components/MessageRun.svelte @@ -9,6 +9,7 @@ </script> <div + class="message-run" class:own-message={ownMessage} class:other-message={!ownMessage} > @@ -19,17 +20,3 @@ <Message {...message} editable={ownMessage} /> {/each} </div> - -<style> - .own-message { - background-color: rgb(32, 42, 74); - } - /* Honestly, I don't love scoping styles per component, and this is a great - * example of why. MessageRuns know if they're own-message, but Messages in - * them need to get a style based on that fact. I don't wanna bucket-brigade - * that fact into the Message, when it's a pure CSS concern. - */ - .own-message :global(*) { - color: rgb(198, 198, 198); - } -</style> |
