Group UI tweaks

This commit is contained in:
SillyLossy
2023-03-29 17:04:07 +03:00
parent 7371a02991
commit 67d2514edc
3 changed files with 17 additions and 9 deletions

View File

@@ -1033,14 +1033,16 @@
</div> </div>
<div id="rm_group_buttons"> <div id="rm_group_buttons">
<label class="checkbox_label"> <div class="rm_group_settings">
<input id="rm_group_allow_self_responses" type="checkbox" /> <label class="checkbox_label">
Allow bot responses to self <input id="rm_group_allow_self_responses" type="checkbox" />
</label> Allow bot responses to self
<label id="rm_group_automode_label" class="checkbox_label"> </label>
<input id="rm_group_automode" type="checkbox" /> <label id="rm_group_automode_label" class="checkbox_label">
Auto Mode <input id="rm_group_automode" type="checkbox" />
</label> Auto Mode
</label>
</div>
<div id="rm_group_buttons_expander">&nbsp;</div> <div id="rm_group_buttons_expander">&nbsp;</div>
<input id="rm_group_submit" class="menu_button" type="submit" value="Create"> <input id="rm_group_submit" class="menu_button" type="submit" value="Create">
<input id="rm_group_delete" class="menu_button" type="submit" value="Delete"> <input id="rm_group_delete" class="menu_button" type="submit" value="Delete">

View File

@@ -505,6 +505,7 @@ function select_group_chats(chat_id) {
$("#rm_group_chat_name").on("input", async function () { $("#rm_group_chat_name").on("input", async function () {
if (chat_id) { if (chat_id) {
group.name = $(this).val(); group.name = $(this).val();
$("#rm_button_selected_ch").children("h2").text(group.name);
await editGroup(chat_id); await editGroup(chat_id);
} }
}); });

View File

@@ -2113,10 +2113,15 @@ input[type="range"]{
flex-direction: row; flex-direction: row;
width: 100%; width: 100%;
align-items: center; align-items: center;
margin-bottom: 5px; margin-bottom: 10px;
column-gap: 10px; column-gap: 10px;
} }
.rm_group_settings {
display: flex;
flex-direction: column;
}
#rm_group_buttons .checkbox { #rm_group_buttons .checkbox {
display: flex; display: flex;
} }