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 id="rm_group_buttons">
<label class="checkbox_label">
<input id="rm_group_allow_self_responses" type="checkbox" />
Allow bot responses to self
</label>
<label id="rm_group_automode_label" class="checkbox_label">
<input id="rm_group_automode" type="checkbox" />
Auto Mode
</label>
<div class="rm_group_settings">
<label class="checkbox_label">
<input id="rm_group_allow_self_responses" type="checkbox" />
Allow bot responses to self
</label>
<label id="rm_group_automode_label" class="checkbox_label">
<input id="rm_group_automode" type="checkbox" />
Auto Mode
</label>
</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_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 () {
if (chat_id) {
group.name = $(this).val();
$("#rm_button_selected_ch").children("h2").text(group.name);
await editGroup(chat_id);
}
});

View File

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