Unify preset button styles

This commit is contained in:
Cohee 2023-10-21 23:32:53 +03:00
parent 6296cb8218
commit 04a5d9694e
2 changed files with 12 additions and 25 deletions

View File

@ -130,8 +130,8 @@
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h4> </h4>
<div class="preset_buttons"> <div class="flex-container">
<select id="settings_perset" data-preset-manager-for="kobold"> <select id="settings_perset" data-preset-manager-for="kobold" class="flex1 text_pole">
<option value="gui" data-i18n="guikoboldaisettings">GUI KoboldAI Settings</option> <option value="gui" data-i18n="guikoboldaisettings">GUI KoboldAI Settings</option>
</select> </select>
<input type="file" hidden data-preset-manager-file="kobold" accept=".json, .settings"> <input type="file" hidden data-preset-manager-file="kobold" accept=".json, .settings">
@ -149,8 +149,8 @@
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h4> </h4>
<div class="preset_buttons"> <div class="flex-container">
<select id="settings_perset_novel" data-preset-manager-for="novel"> <select id="settings_perset_novel" class="flex1 text_pole" data-preset-manager-for="novel">
<option value="gui" data-i18n="default">Default</option> <option value="gui" data-i18n="default">Default</option>
</select> </select>
<input type="file" hidden data-preset-manager-file="novel" accept=".json, .settings"> <input type="file" hidden data-preset-manager-file="novel" accept=".json, .settings">
@ -164,8 +164,8 @@
<div id="openai_api-presets"> <div id="openai_api-presets">
<div> <div>
<h4 class="margin0"><span data-i18n="openaipresets">Chat Completion Presets</span></h4> <h4 class="margin0"><span data-i18n="openaipresets">Chat Completion Presets</span></h4>
<div class="openai_preset_buttons"> <div class="flex-container">
<select id="settings_perset_openai"> <select id="settings_perset_openai" class="flex1 text_pole">
<option value="gui" data-i18n="default">Default</option> <option value="gui" data-i18n="default">Default</option>
</select> </select>
<i id="update_oai_preset" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i> <i id="update_oai_preset" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>
@ -179,8 +179,8 @@
</div> </div>
<div id="textgenerationwebui_api-presets"> <div id="textgenerationwebui_api-presets">
<h4 class="margin0"><span data-i18n="Text Gen WebUI (ooba/Mancer) presets">Text Gen WebUI (ooba/Mancer) presets</span></h4> <h4 class="margin0"><span data-i18n="Text Gen WebUI (ooba/Mancer) presets">Text Gen WebUI (ooba/Mancer) presets</span></h4>
<div class="preset_buttons"> <div class="flex-container">
<select id="settings_preset_textgenerationwebui" data-preset-manager-for="textgenerationwebui"> <select id="settings_preset_textgenerationwebui" class="flex1 text_pole" data-preset-manager-for="textgenerationwebui">
</select> </select>
<input type="file" hidden data-preset-manager-file="textgenerationwebui" accept=".json, .settings"> <input type="file" hidden data-preset-manager-file="textgenerationwebui" accept=".json, .settings">
<i data-newbie-hidden data-preset-manager-update="textgenerationwebui" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i> <i data-newbie-hidden data-preset-manager-update="textgenerationwebui" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>
@ -2273,8 +2273,8 @@
<h4 data-i18n="Context Template"> <h4 data-i18n="Context Template">
Context Template Context Template
</h4> </h4>
<div class="preset_buttons flex-container"> <div class="flex-container">
<select id="context_presets" data-preset-manager-for="context" class="flex1"></select> <select id="context_presets" data-preset-manager-for="context" class="flex1 text_pole"></select>
<input type="file" hidden data-preset-manager-file="context" accept=".json, .settings"> <input type="file" hidden data-preset-manager-file="context" accept=".json, .settings">
<i id="context_set_default" class="menu_button fa-solid fa-heart" title="Auto-select this preset for Instruct Mode."></i> <i id="context_set_default" class="menu_button fa-solid fa-heart" title="Auto-select this preset for Instruct Mode."></i>
<i data-newbie-hidden data-preset-manager-update="context" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i> <i data-newbie-hidden data-preset-manager-update="context" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>
@ -2361,8 +2361,8 @@
<label for="instruct_presets"> <label for="instruct_presets">
<span data-i18n="Presets">Presets</span> <span data-i18n="Presets">Presets</span>
</label> </label>
<div class="preset_buttons"> <div class="flex-container">
<select id="instruct_presets" data-preset-manager-for="instruct" class="flex1"></select> <select id="instruct_presets" data-preset-manager-for="instruct" class="flex1 text_pole"></select>
<input type="file" hidden data-preset-manager-file="instruct" accept=".json, .settings"> <input type="file" hidden data-preset-manager-file="instruct" accept=".json, .settings">
<i id="instruct_set_default" class="menu_button fa-solid fa-heart" title="Auto-select this preset on API connection."></i> <i id="instruct_set_default" class="menu_button fa-solid fa-heart" title="Auto-select this preset on API connection."></i>
<i data-newbie-hidden data-preset-manager-update="instruct" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i> <i data-newbie-hidden data-preset-manager-update="instruct" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>

View File

@ -3398,19 +3398,6 @@ a {
flex-direction: column; flex-direction: column;
} }
.openai_preset_buttons,
.preset_buttons {
display: flex;
flex-direction: row;
align-items: baseline;
gap: 5px;
}
.openai_preset_buttons select,
.preset_buttons select {
flex-grow: 1;
}
#ReverseProxyWarningMessage { #ReverseProxyWarningMessage {
display: none; display: none;
} }