Fix for mobile help text in menus

This commit is contained in:
ebolam
2022-10-12 15:10:40 -04:00
parent 36230e6804
commit f531ecc59b
4 changed files with 17 additions and 16 deletions

View File

@@ -1504,7 +1504,7 @@ class KoboldStoryRegister(object):
def set_probabilites(self, probabilities, action_id=None):
if action_id is None:
action_id = self.action_count
action_id = self.action_count+1
if action_id in self.actions:
self.actions[action_id]['Probabilities'].append(probabilities)
process_variable_changes(self.socketio, "story", 'actions', {"id": action_id, 'action': self.actions[action_id]}, None)

View File

@@ -2631,6 +2631,7 @@ h2 .material-icons-outlined {
.help_text {
margin-left: 6px;
margin-bottom: 0.7em;
width: 100%;
opacity: 0.7;
font-size: calc(0.9em + var(--font_size_adjustment));
display: block;

View File

@@ -132,7 +132,7 @@
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Sampling</h4>
</div>
<div class="setting_tile_area">
<span class="help_text">Change how the AI decides what to say.</span>
<div class="help_text">Change how the AI decides what to say.</div>
{% with sub_path='Sampling' %}
{% include 'settings item.html' %}
{% endwith %}
@@ -167,7 +167,7 @@
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Repetition</h4>
</div>
<div class="setting_tile_area">
<span class="help_text">Change how the AI combats repetition.</span>
<div class="help_text">Change how the AI combats repetition.</div>
{% with sub_path='Repetition' %}
{% include 'settings item.html' %}
{% endwith %}
@@ -232,7 +232,7 @@
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Biasing</h4>
</div>
<div id="biasing">
<span class="help_text">Influence the likelihood for the AI to output certain phrases.</span>
<div class="help_text">Influence the likelihood for the AI to output certain phrases.</div>
<div class="bias_header">
<div class="bias_header_phrase">Phrase</div>
<div class="bias_header_score">Score</div>
@@ -311,7 +311,7 @@
</div>
<div class="setting_tile_area" id="Substitutions">
<span class="help_text">Automatically replaces phrases that you or the AI insert.</span>
<div class="help_text">Automatically replaces phrases that you or the AI insert.</div>
<span class="helpicon material-icons-outlined" tooltip="Can be used to help you insert special characters or automatically correct the AI. The pencil button toggles if a substitution is active or not.">help_icon</span>
<div id="substitution-header" class="noselect">
@@ -415,7 +415,7 @@
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Tweaks</h4>
</div>
<div class="setting_tile_area" id="Tweaks">
<span class="help_text">Small UI changes that can be mixed and matched.</span>
<div class="help_text">Small UI changes that can be mixed and matched.</div>
<div class="tweak-container" tweak-path="hide-timing">
<span>Hide timing information</span>
<input type=checkbox class="setting_item_input" data-size="mini" data-onstyle="success" data-toggle="toggle">

View File

@@ -8,16 +8,16 @@
<div id="story_menu_memory" class="story_category_area tab-target tab-target-story">
<div id="Memory">
<h4 class="section_header"><label for="memory">Memory</label></h4>
<span class="help_text">
<div class="help_text">
Important information the AI should always keep in mind.
</span>
</div>
<textarea rows=20 id="memory" class="var_sync_story_memory var_sync_alt_story_memory_length fullwidth" onchange='sync_to_server(this);' oninput="autoResize(this)" autocomplete="off"></textarea>
</div>
<div id="Auto-Memory">
<h4 class="section_header"><label for="auto_memory">Auto-Memory (non-functional)</label></h4>
<span class="help_text">
<div class="help_text">
What the system would use for automatic memory summarized from the game
</span>
</div>
<button class="settings_button" onclick="socket.emit('refresh_auto_memory', {});">Generate</button>
<textarea rows=20 id="auto_memory" class="var_sync_story_auto_memory fullwidth" oninput="autoResize(this)" autocomplete="off"></textarea>
</div>
@@ -25,9 +25,9 @@
<div id="story_menu_author" class="story_category_area tab-target tab-target-story hidden">
<div id="author_notes">
<h4 class="section_header">Author's Note</h4>
<span class="help_text">
<div class="help_text">
Heavily influences the direction and style of the AI's writing.
</span>
</div>
<label for="authors_notes_template">Template:</label><br/>
<input autocomplete="off" id=authors_notes_template type=text class="var_sync_story_authornotetemplate fullwidth" onchange='sync_to_server(this);'><br/>
@@ -45,18 +45,18 @@
<div id="story_menu_notes" class="story_category_area tab-target tab-target-story hidden">
<div id="Notes">
<h4 class="section_header"><label for="notes">Notes</label></h4>
<span class="help_text">
<div class="help_text">
Notes about the story. These notes are not read by the AI!
</span>
</div>
<textarea id="notes" autocomplete="off" rows=20 class="var_sync_story_notes fullwidth" onchange='sync_to_server(this);' oninput="autoResize(this)"></textarea>
</div>
</div>
<div id="story_menu_wi" class="story_category_area tab-target tab-target-story hidden">
<h4 class="section_header" style="margin-left: 12px;">World Info</h4>
<span class="help_text" style="margin-left: 20px;">
<div class="help_text" style="margin-left: 20px;">
Lore information, which the AI recalls by certain words.
<span class="helpicon material-icons-outlined" tooltip="Use this instead of Memory for information on things like characters, objects, events, places, and anything else with detail.">help_icon</span>
</span>
</div>
<div class="setting_tile_area wi_settings">
{% with menu='World Info' %}
{% with sub_path='' %}