mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Update for world info box resizing
This commit is contained in:
@@ -2583,7 +2583,7 @@ function autoResize(element, min_size=200) {
|
|||||||
if (min_size > element.scrollHeight) {
|
if (min_size > element.scrollHeight) {
|
||||||
element.style.height = min_size + "px";
|
element.style.height = min_size + "px";
|
||||||
} else {
|
} else {
|
||||||
element.style.height = element.scrollHeight + 'px';
|
element.style.height = (element.scrollHeight + 5) + 'px';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="world_info_basic_text_">
|
<div id="world_info_basic_text_">
|
||||||
Text:
|
Text:
|
||||||
<textarea id="world_info_entry_text_" class="world_info_text fullwidth" oninput="autoResize(this, 100)"></textarea>
|
<textarea id="world_info_entry_text_" class="world_info_text fullwidth" oninput="autoResize(this, 60)" onfocus="autoResize(this, 60)"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div id="world_info_entry_w++_" class="hidden">
|
<div id="world_info_entry_w++_" class="hidden">
|
||||||
<input type=text placeholder="Type"/><input type=text placeholder="Name"/>
|
<input type=text placeholder="Type"/><input type=text placeholder="Name"/>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Comment:
|
Comment:
|
||||||
<textarea rows=1 id="world_info_comment_" class="world_info_text fullwidth" oninput="autoResize(this, 100)"></textarea>
|
<textarea rows=1 id="world_info_comment_" class="world_info_text fullwidth" oninput="autoResize(this, 60)" onfocus="autoResize(this, 60)"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="empty_bias">
|
<div id="empty_bias">
|
||||||
|
Reference in New Issue
Block a user