Visual touchup of custom expressions

This commit is contained in:
Cohee 2023-09-14 21:41:30 +03:00
parent 7553efc308
commit b24509ef43
2 changed files with 8 additions and 4 deletions

View File

@ -940,6 +940,10 @@ function renderCustomExpressions() {
option.text = expression; option.text = expression;
$('#expression_custom').append(option); $('#expression_custom').append(option);
} }
if (customExpressions.length === 0) {
$('#expression_custom').append('<option value="" disabled selected>[ No custom expressions ]</option>');
}
} }
async function getExpressionsList() { async function getExpressionsList() {

View File

@ -18,13 +18,13 @@
<input id="image_type_toggle" type="checkbox"> <input id="image_type_toggle" type="checkbox">
<span>Image Type - talkinghead (extras)</span> <span>Image Type - talkinghead (extras)</span>
</label> </label>
<div class="expression_custom_block"> <div class="expression_custom_block m-b-1 m-t-1">
<label for="expression_custom">Custom Expressions</label> <label for="expression_custom">Custom Expressions</label>
<small>Can be set manually or with an <tt>/emote</tt> slash command.</small> <small>Can be set manually or with an <tt>/emote</tt> slash command.</small>
<div class="flex-container alignitemscenter"> <div class="flex-container">
<select id="expression_custom" class="flex1 margin0"><select> <select id="expression_custom" class="flex1 margin0"><select>
<i id="expression_custom_add" class="menu_button fa-solid fa-plus" title="Add"></i> <i id="expression_custom_add" class="menu_button fa-solid fa-plus margin0" title="Add"></i>
<i id="expression_custom_remove" class="menu_button fa-solid fa-xmark" title="Remove"></i> <i id="expression_custom_remove" class="menu_button fa-solid fa-xmark margin0" title="Remove"></i>
</div> </div>
</div> </div>
<div id="no_chat_expressions"> <div id="no_chat_expressions">