mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Extensions styles fix
This commit is contained in:
@ -2154,7 +2154,7 @@ function isMultigenEnabled() {
|
|||||||
|
|
||||||
function activateSendButtons() {
|
function activateSendButtons() {
|
||||||
is_send_press = false;
|
is_send_press = false;
|
||||||
$("#send_but").css("display", "inline");
|
$("#send_but").css("display", "flex");
|
||||||
$("#loading_mes").css("display", "none");
|
$("#loading_mes").css("display", "none");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ async function moduleWorker() {
|
|||||||
async function setImageIcon() {
|
async function setImageIcon() {
|
||||||
try {
|
try {
|
||||||
const sendButton = document.getElementById('send_picture');
|
const sendButton = document.getElementById('send_picture');
|
||||||
sendButton.style.backgroundImage = `url('/img/image-solid.svg')`;
|
sendButton.classList.add('fa-image');
|
||||||
sendButton.classList.remove('spin');
|
sendButton.classList.remove('fa-hourglass-half', 'fa-spin');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@ -27,7 +27,8 @@ async function setImageIcon() {
|
|||||||
async function setSpinnerIcon() {
|
async function setSpinnerIcon() {
|
||||||
try {
|
try {
|
||||||
const sendButton = document.getElementById('send_picture');
|
const sendButton = document.getElementById('send_picture');
|
||||||
sendButton.style.backgroundImage = `url('/img/hourglass-half-solid.svg')`;
|
sendButton.classList.remove('fa-image');
|
||||||
|
sendButton.classList.add('fa-hourglass-half', 'fa-spin');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@ -96,9 +97,9 @@ $(document).ready(function () {
|
|||||||
$('#send_form').css('grid-template-columns', columns.join(' '));
|
$('#send_form').css('grid-template-columns', columns.join(' '));
|
||||||
}
|
}
|
||||||
function addSendPictureButton() {
|
function addSendPictureButton() {
|
||||||
const sendButton = document.createElement('input');
|
const sendButton = document.createElement('div');
|
||||||
sendButton.type = 'button';
|
|
||||||
sendButton.id = 'send_picture';
|
sendButton.id = 'send_picture';
|
||||||
|
sendButton.classList.add('fa-solid');
|
||||||
$(sendButton).hide();
|
$(sendButton).hide();
|
||||||
$(sendButton).on('click', () => $('#img_file').click());
|
$(sendButton).on('click', () => $('#img_file').click());
|
||||||
$('#send_but_sheld').prepend(sendButton);
|
$('#send_but_sheld').prepend(sendButton);
|
||||||
|
@ -4,15 +4,14 @@
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
background: no-repeat;
|
|
||||||
background-size: 24px 24px;
|
|
||||||
background-position: center center;
|
|
||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
filter: invert(1);
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#send_picture:hover {
|
#send_picture:hover {
|
||||||
|
@ -30,6 +30,8 @@ async function doDiceRoll() {
|
|||||||
function addDiceRollButton() {
|
function addDiceRollButton() {
|
||||||
const buttonHtml = `
|
const buttonHtml = `
|
||||||
<div id="roll_dice" class="fa-solid fa-dice" /></div>
|
<div id="roll_dice" class="fa-solid fa-dice" /></div>
|
||||||
|
`;
|
||||||
|
const dropdownHtml = `
|
||||||
<div id="dice_dropdown">
|
<div id="dice_dropdown">
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<li class="list-group-item" data-value="d4">d4</li>
|
<li class="list-group-item" data-value="d4">d4</li>
|
||||||
@ -41,10 +43,10 @@ function addDiceRollButton() {
|
|||||||
<li class="list-group-item" data-value="d100">d100</li>
|
<li class="list-group-item" data-value="d100">d100</li>
|
||||||
<li class="list-group-item" data-value="custom">...</li>
|
<li class="list-group-item" data-value="custom">...</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>`;
|
||||||
`;
|
|
||||||
|
|
||||||
$('#send_but_sheld').prepend(buttonHtml);
|
$('#send_but_sheld').prepend(buttonHtml);
|
||||||
|
$(document.body).append(dropdownHtml)
|
||||||
$('#dice_dropdown li').on('click', doDiceRoll);
|
$('#dice_dropdown li').on('click', doDiceRoll);
|
||||||
const button = $('#roll_dice');
|
const button = $('#roll_dice');
|
||||||
const dropdown = $('#dice_dropdown');
|
const dropdown = $('#dice_dropdown');
|
||||||
|
@ -3,19 +3,21 @@
|
|||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-right: 5px;
|
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
background: no-repeat;
|
|
||||||
background-size: 26px auto;
|
|
||||||
background-position: center center;
|
|
||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
font-size: 30px;
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#roll_dice:hover {
|
#roll_dice:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#dice_dropdown {
|
||||||
|
z-index: 100;
|
||||||
|
}
|
@ -317,7 +317,7 @@ $(document).ready(function () {
|
|||||||
<div class="inline-drawer">
|
<div class="inline-drawer">
|
||||||
<div class="inline-drawer-toggle inline-drawer-header">
|
<div class="inline-drawer-toggle inline-drawer-header">
|
||||||
<b>Summarization settings</b>
|
<b>Summarization settings</b>
|
||||||
<div class="inline-drawer-icon down"></div>
|
<div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="inline-drawer-content">
|
<div class="inline-drawer-content">
|
||||||
<label for="memory_short_length">Memory summarization [short-term] length (<span id="memory_short_length_tokens"></span> tokens)</label>
|
<label for="memory_short_length">Memory summarization [short-term] length (<span id="memory_short_length_tokens"></span> tokens)</label>
|
||||||
|
@ -262,6 +262,9 @@ code {
|
|||||||
background-position: center;
|
background-position: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
column-gap: 5px;
|
||||||
|
font-size: 30px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#send_but {
|
#send_but {
|
||||||
@ -270,12 +273,14 @@ code {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
display: none;
|
display: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
font-size: 30px;
|
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
filter: brightness(0.7);
|
filter: brightness(0.7);
|
||||||
order: 99999;
|
order: 99999;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#send_but:hover {
|
#send_but:hover {
|
||||||
@ -290,7 +295,6 @@ code {
|
|||||||
order: 99999;
|
order: 99999;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-size: 24px;
|
|
||||||
filter: brightness(0.7);
|
filter: brightness(0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2679,7 +2683,7 @@ a {
|
|||||||
.list-group-item {
|
.list-group-item {
|
||||||
color: rgba(229, 224, 216, 1);
|
color: rgba(229, 224, 216, 1);
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: list-item;
|
||||||
padding: 0.75rem 1.25rem;
|
padding: 0.75rem 1.25rem;
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
Reference in New Issue
Block a user