mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for welcome icon/text placement
This commit is contained in:
@@ -594,9 +594,13 @@ class model_settings(settings):
|
|||||||
self.oaiapikey = "" # API key to use for OpenAI API calls
|
self.oaiapikey = "" # API key to use for OpenAI API calls
|
||||||
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'><div id="welcome-text-content">Please load a model from the left.<br/>
|
self.welcome_default = """<div style="display: flex; align-content: space-between;>
|
||||||
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>.
|
<img id='welcome-logo' src='static/Welcome_Logo.png' draggable='False'>
|
||||||
A redacted version (without story text) is available.</div>""" # Custom Welcome Text
|
<div id="welcome-text-content">Please load a model from the left.<br/>
|
||||||
|
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
|
||||||
self.welcome = self.welcome_default
|
self.welcome = self.welcome_default
|
||||||
self.koboldai_vars = koboldai_vars
|
self.koboldai_vars = koboldai_vars
|
||||||
|
|
||||||
|
@@ -2386,21 +2386,25 @@ body {
|
|||||||
color: white
|
color: white
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#welcome_text {
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#welcome-logo {
|
#welcome-logo {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
margin-top: -50px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
width: 50%;
|
width: 50%;
|
||||||
top: 295px;
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
margin-right: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
max-width: 720px;
|
max-width: 720px;
|
||||||
filter: drop-shadow(5px 5px 5px #222);
|
filter: drop-shadow(5px 5px 5px #222);
|
||||||
}
|
}
|
||||||
|
|
||||||
#welcome-text-content {
|
#welcome-text-content {
|
||||||
position: relative;
|
display: inline-block;
|
||||||
top: 520px;
|
align-self: flex-end;
|
||||||
left: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Popups */
|
/* Popups */
|
||||||
|
@@ -1154,6 +1154,7 @@ function popup_items(data) {
|
|||||||
if (data.show_filename) {
|
if (data.show_filename) {
|
||||||
td = document.createElement("span");
|
td = document.createElement("span");
|
||||||
td.textContent = "File Name";
|
td.textContent = "File Name";
|
||||||
|
td.classList.add("table-header-container")
|
||||||
td.style = "overflow-x: hidden; grid-area: p"+i+";";
|
td.style = "overflow-x: hidden; grid-area: p"+i+";";
|
||||||
i+=1;
|
i+=1;
|
||||||
tr.append(td)
|
tr.append(td)
|
||||||
|
Reference in New Issue
Block a user