Don't cache modifiers; rearrange the modifier controls

This commit is contained in:
cmdr2 2022-09-23 22:01:38 +05:30
parent 5bbef09f85
commit 657129e4a7
3 changed files with 8 additions and 7 deletions

View File

@ -170,15 +170,14 @@
<div id="editor-modifiers" class="panel-box">
<h4 class="collapsible">Image Modifiers (art styles, tags etc)</h4>
<div id="editor-modifiers-entries" class="collapsible-content">
<label for="preview-image">Preview:</label>
<label for="preview-image">Image Style:</label>
<select id="preview-image" name="preview-image" value="portrait">
<option value="portrait" selected="">Portrait</option>
<option value="portrait" selected="">Face</option>
<option value="landscape">Landscape</option>
</select>
<div>
<label for="modifier-card-size-slider">Card Size:</label>
<input id="modifier-card-size-slider" name="modifier-card-size-slider" value="0" type="range" min="-3" max="5">
</div>
&nbsp;
<label for="modifier-card-size-slider">Card Size:</label>
<input id="modifier-card-size-slider" name="modifier-card-size-slider" value="0" type="range" min="-3" max="5">
</div>
</div>
</div>

View File

@ -209,4 +209,5 @@
#modifier-card-size-slider {
width: 6em;
margin-bottom: 0.5em;
transform: translateY(9pt);
}

View File

@ -206,7 +206,8 @@ def getAppConfig():
@app.get('/modifiers.json')
def read_modifiers():
return FileResponse(os.path.join(SD_UI_DIR, 'modifiers.json'))
headers = {"Cache-Control": "no-cache, no-store, must-revalidate", "Pragma": "no-cache", "Expires": "0"}
return FileResponse(os.path.join(SD_UI_DIR, 'modifiers.json'), headers=headers)
@app.get('/output_dir')
def read_home_dir():