Restyle welcome

This commit is contained in:
Cohee
2024-10-05 19:45:41 +03:00
parent 02b0000117
commit 60fef3ee99
3 changed files with 81 additions and 78 deletions

View File

@ -658,7 +658,7 @@ async function getSystemMessages() {
is_user: false,
is_system: true,
uses_system_ui: true,
mes: await renderTemplateAsync('welcome', { displayVersion } ),
mes: await renderTemplateAsync('welcome', { displayVersion }),
},
group: {
name: systemUserName,
@ -9106,7 +9106,7 @@ function doDrawerOpenClick() {
const drawer = $(`#${targetDrawerID}`);
const drawerToggle = drawer.find('.drawer-toggle');
const drawerWasOpenAlready = drawerToggle.parent().find('.drawer-content').hasClass('openDrawer');
if (drawerWasOpenAlready || drawer.hasClass('resizing') ) { return; }
if (drawerWasOpenAlready || drawer.hasClass('resizing')) { return; }
doNavbarIconClick.call(drawerToggle);
}

View File

@ -4,7 +4,6 @@
<a href="https://docs.sillytavern.app/usage/update/" target="_blank" data-i18n="Want to update?">
Want to update?
</a>
<hr>
<h3 data-i18n="How to start chatting?">How to start chatting?</h3>
<ol>
<li>
@ -13,10 +12,10 @@
<i class="fa-solid fa-plug"></i>
<span data-i18n="[title]API Connections">API Connections</span>
</button>
<span data-i18n="and select a">and select a</span>
<span data-i18n="and connect to an">and connect to an</span>
<a href="https://docs.sillytavern.app/usage/api-connections/" target="_blank">
<span class="fa-solid fa-circle-question"></span>
<span data-i18n="Chat API">Chat API</span></a>.
<span data-i18n="API">API</span></a>.
</li>
<li>
<span data-i18n="Click _space">Click </span>
@ -28,7 +27,7 @@
</li>
</ol>
<p>
<div>
<span data-i18n="You can add more">You can add more</span>
<button class="open_characters_library menu_button menu_button_icon inline-flex">
<i class="fa-solid fa-image-portrait"></i>
@ -40,7 +39,8 @@
<span data-i18n="Import Characters">Import characters</span>
</button>
<span data-i18n="from other websites">from other websites.</span>
</div>
<div>
<span data-i18n="Go to the">Go to the</span>
<i data-i18n="Download Extensions & Assets">Download Extensions & Assets</i>
@ -52,15 +52,14 @@
</button>
<span data-i18n="to install additional features.">to install additional features.</span>
</p>
</div>
<hr>
<h3 data-i18n="Confused or lost?">Confused or lost?</h3>
<ul>
<li>
<span class="note-link-span"><a class="fa-solid fa-circle-question" target="_blank"
href="https://docs.sillytavern.app/"></a></span> - <span
data-i18n="click these icons!">click these icons!</span>
href="https://docs.sillytavern.app/"></a></span> - <span data-i18n="click these icons!">click these
icons!</span>
</li>
<li>
<span data-i18n="Enter">Enter </span><code>/?</code><span data-i18n="in the chat bar"> in the chat bar</span>
@ -72,7 +71,6 @@
</li>
</ul>
<hr>
<h3 data-i18n="Still have questions?">Still have questions?</h3>
<ul>
<li>
@ -92,4 +90,3 @@
</a>
</li>
</ul>

View File

@ -314,6 +314,12 @@ input[type='checkbox']:focus-visible {
display: inline-block;
}
.mes_text ol,
.mes_text ul {
margin-top: 5px;
margin-bottom: 5px;
}
.mes_text br,
.mes_bias br {
content: ' ';