chat background color is declared with component

This commit is contained in:
simplonco
2022-12-24 20:55:20 +01:00
parent 2b0939ec05
commit 05d5f2a3ec
5 changed files with 97 additions and 64 deletions

View File

@@ -16,7 +16,7 @@
</script>
<Chat />
<Chat color="bisque"/>
<!-- is this if excessive? -->
<div class="outer">

View File

@@ -3,7 +3,7 @@
import HomeLayout from './Layout_home.svelte';
import Button from './Buttons.svelte';
//export let bg_color = "transparent";
export let color = "transparent";
let room = "";
let admin = false;
@@ -30,7 +30,7 @@
</script>
<div class={layout} id="chat_box">
<div class={layout} id="chat_box" style="background-color: {color};">
{#if layout === "home"}
<HomeLayout bind:layout={layout} />
@@ -61,8 +61,8 @@
border: 1px solid black;
/*
background-color: {bg_color};
*/
background-color: bisque;
*/
}
/* style if chat_box is closed