Merge pull request #64 from one-some/ui2-smalltweaks

Small changes
This commit is contained in:
ebolam
2022-08-26 16:54:23 -04:00
committed by GitHub
3 changed files with 8 additions and 3 deletions

View File

@@ -1147,6 +1147,8 @@ body {
}
#random_game_prompt{
display: flex;
flex-direction: column;
grid-area: textarea;
}
@@ -1562,7 +1564,8 @@ input {
resize: none;
border-color: white;
border-width: 1px;
border-style:solid;
border-style: solid;
outline: none;
}
.action_button {
@@ -1614,6 +1617,7 @@ button.disabled {
textarea {
background-color: var(--input_background);
color: var(--text);
outline: none;
}
.pulse {

View File

@@ -400,7 +400,7 @@ function do_presets(data) {
//add our blank option
var option = document.createElement("option");
option.value="";
option.text="presets";
option.text="Presets";
select.append(option);
presets = data.value;

View File

@@ -70,8 +70,9 @@
<!------------ Input Area--------------------->
<div class="inputrow" id="inputrow_container">
<div id="random_game_prompt" class="hidden">
<input type="text" autocomplete="off" style="width: 100%;" id="themetext" placeholder="Theme for Random Story" oninput='if (this.value != "") {
<input type="text" autocomplete="off" id="themetext" placeholder="Theme for Random Story" oninput='if (this.value != "") {
document.getElementById("input_text").value = "";'/>
<span class="help_text" style="margin:0px;margin-top:5px;">The AI can create a prompt for you! Optionally type in one or more themes above, or let the AI do it's thing.</span>
</div>
<textarea autocomplete="off" row=5 id="input_text" placeholder="Enter Prompt Here" oninput='if (this.value != "") {
document.getElementById("themetext").value = "";