Fix for Model Welcome Text

This commit is contained in:
ebolam
2022-10-30 12:50:23 -04:00
parent 9291e11088
commit 9aaec13e1f
3 changed files with 10 additions and 4 deletions

View File

@@ -595,9 +595,11 @@ class model_settings(settings):
self.configname = None self.configname = None
self.online_model = '' self.online_model = ''
self.welcome_default = """ <img id='welcome-logo' src='static/Welcome_Logo.png' draggable='False'> self.welcome_default = """ <img id='welcome-logo' src='static/Welcome_Logo.png' draggable='False'>
<div id="welcome-text-content">Please load a model from the left.<br/> <div class='welcome_text'>
If you encounter any issues, please click the Download debug dump link in the Home tab on the left flyout and attach the downloaded file to your error report on <a href='https://github.com/ebolam/KoboldAI/issues'>Github</a>, <a href='https://www.reddit.com/r/KoboldAI/'>Reddit</a>, or <a href='https://discord.gg/XuQWadgU9k'>Discord</a>. <div id="welcome-text-content">Please load a model from the left.<br/>
A redacted version (without story text) is available. If you encounter any issues, please click the Download debug dump link in the Home tab on the left flyout and attach the downloaded file to your error report on <a href='https://github.com/ebolam/KoboldAI/issues'>Github</a>, <a href='https://www.reddit.com/r/KoboldAI/'>Reddit</a>, or <a href='https://discord.gg/XuQWadgU9k'>Discord</a>.
A redacted version (without story text) is available.
</div>
</div>""" # Custom Welcome Text </div>""" # Custom Welcome Text
self.welcome = self.welcome_default self.welcome = self.welcome_default
self.koboldai_vars = koboldai_vars self.koboldai_vars = koboldai_vars

View File

@@ -2387,6 +2387,10 @@ body {
} }
#welcome_text { #welcome_text {
height: 100%;
}
.welcome_text {
display: flex; display: flex;
height: 100%; height: 100%;
} }

View File

@@ -45,7 +45,7 @@
<!------------ Game Text Screen---------------------> <!------------ Game Text Screen--------------------->
<div class="gamescreen" id="gamescreen"> <div class="gamescreen" id="gamescreen">
<div id="disconnect_message"><center><h1>Disconnected</h1></center></div> <div id="disconnect_message"><center><h1>Disconnected</h1></center></div>
<div id="welcome_text" class="var_sync_model_welcome welcome_text" draggable="False"></div> <div id="welcome_text" class="var_sync_model_welcome" draggable="False"></div>
<div class="gametext" id="Selected Text" contenteditable=false onblur="select_game_text(null);" onclick="select_game_text(null);" onkeyup="select_game_text(event);"> <div class="gametext" id="Selected Text" contenteditable=false onblur="select_game_text(null);" onclick="select_game_text(null);" onkeyup="select_game_text(event);">
<span id="story_prompt" class="var_sync_story_prompt var_sync_alt_story_prompt_in_ai rawtext hidden" chunk="-1"></span> <span id="story_prompt" class="var_sync_story_prompt var_sync_alt_story_prompt_in_ai rawtext hidden" chunk="-1"></span>
</div> </div>