fixed user and room name pbm

+ style ok
This commit is contained in:
simplonco
2023-01-15 23:52:22 +01:00
parent 170a1f0cd1
commit d60f2f0c9f
5 changed files with 26 additions and 24 deletions

View File

@@ -8,7 +8,7 @@
{ {
lines_width: "1px", lines_width: "1px",
lines_color: "rgb(30, 30, 30)", lines_color: "rgb(30, 30, 30)",
lines_light_color: "rgb(100, 100, 100)", lines_light_color: "rgb(90, 90, 90)",
bg_color: "bisque", bg_color: "bisque",
bg_light_color: "bisque", bg_light_color: "bisque",
@@ -22,19 +22,18 @@
btn_light_color_active: "rgb(210, 210, 210)", btn_light_color_active: "rgb(210, 210, 210)",
btn_color_border: "rgb(200, 200, 200)", btn_color_border: "rgb(200, 200, 200)",
chat_me_color: "rgb(210, 110, 10)", chat_me_color: "rgb(250, 230, 220)",
chat_me_bg_color: "rgb(210, 210, 210)", chat_me_bg_color: "rgb(210, 105, 30)",
chat_other_color: "rgb(210, 210, 210)", chat_name_color: "rgb(230, 230, 230)",
chat_other_bg_color: "rgb(210, 210, 210)", chat_other_color: "rgb(250, 250, 250)",
chat_name_color: "rgb(210, 210, 210)", chat_other_bg_color: "rgb(190, 130, 70)",
chat_input_color: "rgb(210, 210, 210)", chat_serveur_color: "rgb(110, 110, 110)",
chat_input_bg_color: "rgb(210, 210, 210)",
} }
let style_dark = let style_dark =
{ {
lines_width: "2px", lines_width: "2px",
lines_color: "rgb(200, 200, 200)", lines_color: "rgb(200, 200, 200)",
lines_light_color: "rgb(80, 80, 80)", lines_light_color: "rgb(100, 100, 100)",
bg_color: "rgb(35, 35, 35)", bg_color: "rgb(35, 35, 35)",
bg_light_color: "rgb(35, 35, 35)", bg_light_color: "rgb(35, 35, 35)",
@@ -48,8 +47,12 @@
btn_light_color_active: "rgb(210, 210, 210)", btn_light_color_active: "rgb(210, 210, 210)",
btn_color_border: "rgb(200, 200, 200)", btn_color_border: "rgb(200, 200, 200)",
chat_me_color: "rgb(210, 110, 10)", chat_me_color: "rgb(230, 230, 230)",
chat_other_color: "rgb(210, 210, 210)", chat_me_bg_color: "rgb(110, 110, 110)",
chat_name_color: "rgb(110, 110, 110)",
chat_other_color: "rgb( 90, 90, 90)",
chat_other_bg_color: "rgb(210, 210, 210)",
chat_serveur_color: "rgb(190, 190, 190)",
} }
let style = style_light; let style = style_light;
@@ -76,9 +79,6 @@
</script> </script>
{#if $location !== '/'} {#if $location !== '/'}
<!--
<Layouts color={color} />
-->
<Layouts <Layouts
--lines_width={style.lines_width} --lines_width={style.lines_width}
--lines_color={style.lines_color} --lines_color={style.lines_color}
@@ -98,11 +98,10 @@
--chat_me_color={style.chat_me_color} --chat_me_color={style.chat_me_color}
--chat_me_bg_color={style.chat_me_bg_color} --chat_me_bg_color={style.chat_me_bg_color}
--chat_name_color={style.chat_name_color}
--chat_other_color={style.chat_other_color} --chat_other_color={style.chat_other_color}
--chat_other_bg_color={style.chat_other_bg_color} --chat_other_bg_color={style.chat_other_bg_color}
--chat_name_color={style.chat_name_color} --chat_serveur_color={style.chat_serveur_color}
--chat_input_color={style.chat_input_color}
--chat_input_bg_color={style.chat_input_bg_color}
/> />
{/if} {/if}

View File

@@ -49,7 +49,7 @@
.chat_msg p.msg :global(*) { .chat_msg p.msg :global(*) {
display: inline; display: inline;
} }
/* msg perso /* me msg
*/ */
.chat_msg.me { .chat_msg.me {
margin-right: 0px; margin-right: 0px;
@@ -74,7 +74,7 @@
.chat_msg.SERVER p.msg { .chat_msg.SERVER p.msg {
margin: 0px auto; margin: 0px auto;
font-size: 12px; font-size: 12px;
color: var(--lines_light_color); color: var(--chat_serveur_color);
} }
</style> </style>

View File

@@ -41,7 +41,7 @@
<!-- room_name --> <!-- room_name -->
<Button new_layout="room_set" my_class="room_name transparent"> <Button new_layout="room_set" my_class="room_name transparent">
{$current_room.name} {$current_room.client_name}
</Button> </Button>
<!-- close --> <!-- close -->
@@ -114,6 +114,9 @@
background-color: var(--bg_color); background-color: var(--bg_color);
border: var(--lines_width) solid var(--lines_color); border: var(--lines_width) solid var(--lines_color);
} }
.grid_box .text_area {
color: var(--lines_color);
}
.grid_box .text_area:focus { .grid_box .text_area:focus {
height: auto; height: auto;
min-height: 100%; min-height: 100%;
@@ -128,7 +131,7 @@
*/ */
.grid_box .panel_msg { .grid_box .panel_msg {
flex-direction: column-reverse; flex-direction: column-reverse;
border: 1px solid black; border: var(--lines_width) solid var(--lines_color);
} }
.grid_box .msg_thread { .grid_box .msg_thread {
width: 100%; width: 100%;

View File

@@ -39,7 +39,7 @@
<!-- room_name --> <!-- room_name -->
<Button my_class="room_name deactivate"> <Button my_class="room_name deactivate">
{$current_room.name} {$current_room.client_name}
</Button> </Button>
<!-- close --> <!-- close -->
@@ -82,7 +82,7 @@
<p>list of users is loading...</p> <p>list of users is loading...</p>
{:then users} {:then users}
{#each users as user} {#each users as user}
<Button my_class="list admin" on:click={function(){user_profile(user)}}> <Button my_class="list admin" on:click={function(){user_profile(user.name)}}>
{user.name} {user.name}
{#if user.isadmin } {#if user.isadmin }
<span>admin</span> <span>admin</span>

View File

@@ -67,7 +67,7 @@
<!-- room_name --> <!-- room_name -->
{#if back === "room_set"} {#if back === "room_set"}
<Button my_class="room_name deactivate __border_top"> <Button my_class="room_name deactivate __border_top">
{$current_room.name} {$current_room.client_name}
</Button> </Button>
{/if} {/if}