From 60fef3ee99705be644c25e578b666344af8af81d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 5 Oct 2024 19:45:41 +0300 Subject: [PATCH] Restyle welcome --- public/script.js | 4 +- public/scripts/templates/welcome.html | 149 +++++++++++++------------- public/style.css | 6 ++ 3 files changed, 81 insertions(+), 78 deletions(-) diff --git a/public/script.js b/public/script.js index d82373400..7651cf3fd 100644 --- a/public/script.js +++ b/public/script.js @@ -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); } diff --git a/public/scripts/templates/welcome.html b/public/scripts/templates/welcome.html index df887c3ad..eaf49b986 100644 --- a/public/scripts/templates/welcome.html +++ b/public/scripts/templates/welcome.html @@ -1,95 +1,92 @@

- {{displayVersion}} + {{displayVersion}}

- Want to update? + Want to update? -

How to start chatting?

    -
  1. - Click - - and select a - - - Chat API. -
  2. -
  3. - Click - - and pick a character. -
  4. +
  5. + Click + + and connect to an + + + API. +
  6. +
  7. + Click + + and pick a character. +
-

- You can add more - - or - - from other websites. +

+ You can add more + + or + + from other websites. +
+
+ Go to the - Go to the + Download Extensions & Assets + menu within - Download Extensions & Assets - menu within + - + to install additional features. +
- to install additional features. -

- -

Confused or lost?

-

Still have questions?

- diff --git a/public/style.css b/public/style.css index 6ee4f6d60..8bb8d5809 100644 --- a/public/style.css +++ b/public/style.css @@ -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: ' ';