diff --git a/tests_hugo/chat_node/chat_client/chat.html b/tests_hugo/chat_node/chat_client/chat.html index e1c48a4d..5fcdbd6e 100644 --- a/tests_hugo/chat_node/chat_client/chat.html +++ b/tests_hugo/chat_node/chat_client/chat.html @@ -8,18 +8,53 @@ -

-

-

-

-

-

-

-

-

-

+

+

+

+

+

+

+

+

+

+

   +

   +

   +

   +

   +

   +

   +

   +

   +

   +

   +

   +

   +

   +

+ @@ -173,7 +208,7 @@

this room is protected

- +
@@ -181,18 +216,19 @@
+ - + - + - + - +
@@ -205,8 +241,22 @@
- - panel user +

user options :

+
+ + + +
+ + +
+
diff --git a/tests_hugo/chat_node/chat_client/style/layout_user.css b/tests_hugo/chat_node/chat_client/style/layout_user.css index e810631f..5af342f1 100644 --- a/tests_hugo/chat_node/chat_client/style/layout_user.css +++ b/tests_hugo/chat_node/chat_client/style/layout_user.css @@ -13,30 +13,52 @@ } -/* back btn -*/ -#chat_box.user .chat_item.chat_back button.back_room { - display: flex; -} -/* from settings */ -#chat_box._settings .chat_item.chat_back button.btn { - display: none; -} -#chat_box._settings .chat_item.chat_back button.back_settings { - display: flex; -} -/* from room settings */ -#chat_box._room_set .chat_item.chat_back button.btn { - display: none; -} -#chat_box._room_set .chat_item.chat_back button.back_room_set { - display: flex; -} - - /* title "user" appearance */ #chat_box.user .chat_item.chat_user { text-align: center; } + +/* back btn +*/ +#chat_box.user .chat_item.chat_back button.back_home {display: flex;} +/* from settings */ +#chat_box._settings .chat_item.chat_back button.btn {display: none;} +#chat_box._settings .chat_item.chat_back button.back_settings {display: flex;} +/* from room settings */ +#chat_box._room_set .chat_item.chat_back button.btn {display: none;} +#chat_box._room_set .chat_item.chat_back button.back_room_set {display: flex;} + + +/* buttons appearance +*/ +#chat_box.user .chat_item.chat_panel_user .chat_user_btn_wrapper { + margin: 0px auto; +} +#chat_box.user .chat_item.chat_panel_user button { + margin: 10px; +} +#chat_box.user #chat_user_admin { + margin: 0px; +} + + +/* toggle buttons according to chat_box class +*/ +/* block/unblock */ +#chat_box.user #chat_user_unblock {display: none;} +#chat_box.user._blocked #chat_user_block {display: none;} +#chat_box.user._blocked #chat_user_unblock {display: flex;} +/* admin */ +#chat_box.user #chat_user_admin {display: none;} +#chat_box.user._admin #chat_user_admin {display: flex;} +/* mute if from room */ +#chat_box.user #chat_mute_btn {display: none;} +#chat_box.user._room_set #chat_mute_btn {display: flex;} +/* mute/unmute */ +#chat_box.user #chat_user_unmute {display: none;} +#chat_box.user._muted #chat_user_mute {display: none;} +#chat_box.user._muted #chat_user_unmute {display: flex;} + +