summaryrefslogtreecommitdiff
path: root/ui/lib/components/MessageRun.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/components/MessageRun.svelte')
-rw-r--r--ui/lib/components/MessageRun.svelte15
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>