mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-03-07 12:30:10 +00:00
Better waifu image style
This commit is contained in:
@@ -3,7 +3,7 @@ const SETTINGS_KEY = 'extensions_memory_settings';
|
||||
const UPDATE_INTERVAL = 1000;
|
||||
|
||||
let expressionsList = null;
|
||||
let lastCharacter = null;
|
||||
let lastCharacter = undefined;
|
||||
let lastMessage = null;
|
||||
let inApiCall = false;
|
||||
|
||||
@@ -93,10 +93,14 @@ function removeExpression() {
|
||||
|
||||
async function validateImages() {
|
||||
const context = getContext();
|
||||
const IMAGE_LIST = (await getExpressionsList()).map(x => `${x}.png`);
|
||||
$('.expression_settings').show();
|
||||
$('#image_list').empty();
|
||||
|
||||
|
||||
if (!context.characterId) {
|
||||
return;
|
||||
}
|
||||
|
||||
const IMAGE_LIST = (await getExpressionsList()).map(x => `${x}.png`);
|
||||
IMAGE_LIST.forEach((item) => {
|
||||
const image = document.createElement('img');
|
||||
image.src = `/characters/${context.name2}/${item}`;
|
||||
|
||||
@@ -2,15 +2,16 @@ div.expression {
|
||||
background-image: unset;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
max-width: 200px;
|
||||
max-height: 300px;
|
||||
background-position-y: bottom;
|
||||
max-height: 90vh;
|
||||
max-width: calc((100vw - 800px)/2);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin-left: 10px;
|
||||
filter: drop-shadow(2px 2px 2px #cccccc80);
|
||||
filter: drop-shadow(2px 2px 2px #51515199);
|
||||
transition: 500ms;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user