Merge pull request #4096 from SillyTavern/TopbarFadeMUIAndGetWorldEntryRefactors
UI performance optimizations and refactoring
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
|
||||
/* Flashing for highlighting animation */
|
||||
@keyframes flash {
|
||||
|
||||
0%,
|
||||
50%,
|
||||
100% {
|
||||
@@ -122,3 +123,12 @@
|
||||
border-top-color: var(--progFlashColor);
|
||||
}
|
||||
}
|
||||
|
||||
/* Scroll delay animations */
|
||||
@keyframes hide-scroll {
|
||||
|
||||
from,
|
||||
to {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#rm_print_characters_block.group_overlay_mode_select .character_select {
|
||||
transition: background-color 0.4s ease;
|
||||
transition: background-color var(--animation-duration-3x) ease;
|
||||
background-color: rgba(170, 170, 170, 0.15);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#load-spinner {
|
||||
--spinner-size: 2em;
|
||||
transition: all 300ms ease-out;
|
||||
transition: all var(--animation-duration-2x) ease-out;
|
||||
opacity: 1;
|
||||
top: calc(50% - var(--spinner-size) / 2);
|
||||
left: calc(50% - var(--spinner-size) / 2);
|
||||
|
||||
@@ -23,7 +23,7 @@ body.login .userSelect {
|
||||
width: 30%;
|
||||
cursor: pointer;
|
||||
margin: 5px 0;
|
||||
transition: background-color 0.15s ease-in-out;
|
||||
transition: background-color var(--animation-duration) ease-in-out;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
height: 25px;
|
||||
margin-left: 5px;
|
||||
opacity: 0.5;
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
position: unset !important;
|
||||
}
|
||||
|
||||
|
||||
@@ -237,6 +237,15 @@
|
||||
top: var(--topBarBlockSize) !important;
|
||||
left: 0 !important;
|
||||
backdrop-filter: blur(calc(var(--SmartThemeBlurStrength) * 2));
|
||||
|
||||
@starting-style {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#left-nav-panel:not(.openDrawer),
|
||||
#right-nav-panel:not(.openDrawer) {
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
justify-content: center;
|
||||
margin-left: 0.25em;
|
||||
cursor: pointer;
|
||||
transition: 0.3s ease-in-out;
|
||||
transition: var(--animation-duration-2x) ease-in-out;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
filter: drop-shadow(0px 0px 2px black);
|
||||
@@ -239,7 +239,7 @@
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 0.25em;
|
||||
transition: 0.3s ease-in-out;
|
||||
transition: var(--animation-duration-2x) ease-in-out;
|
||||
filter: drop-shadow(0px 0px 2px black);
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
#rm_group_members .group_member:not(.disabled) .right_menu_button[data-action="disable"] {
|
||||
opacity: 0.4;
|
||||
filter: brightness(0.5);
|
||||
transition: all 0.2s ease-in-out;
|
||||
transition: all var(--animation-duration-2x) ease-in-out;
|
||||
}
|
||||
|
||||
/* #rm_group_members .right_menu_button[data-action="speak"]:hover, */
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
background-color: unset;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
opacity: 0.5;
|
||||
transition: opacity 200ms ease-in-out;
|
||||
transition: opacity var(--animation-duration-2x) ease-in-out;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@
|
||||
/* Styling for choice remove icon */
|
||||
span.select2.select2-container .select2-selection__choice__remove {
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
transition: background-color var(--animation-duration-2x);
|
||||
color: var(--SmartThemeBodyColor);
|
||||
background-color: var(--black50a);
|
||||
}
|
||||
@@ -220,7 +220,7 @@ span.select2.select2-container .select2-selection__choice__remove:hover {
|
||||
|
||||
.select2_choice_clickable_buttonstyle+span.select2-container .select2-selection__choice__display {
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
transition: background-color var(--animation-duration-2x);
|
||||
color: var(--SmartThemeBodyColor);
|
||||
background-color: var(--black50a);
|
||||
white-space: break-spaces;
|
||||
|
||||
@@ -332,6 +332,10 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.overflowYScroll {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.padding0 {
|
||||
padding: 0;
|
||||
}
|
||||
@@ -480,7 +484,7 @@
|
||||
}
|
||||
|
||||
.hoverglow {
|
||||
transition: opacity 200ms;
|
||||
transition: opacity var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.hoverglow:hover {
|
||||
|
||||
+1
-1
@@ -167,7 +167,7 @@
|
||||
}
|
||||
|
||||
.rm_tag_filter .tag.actionable {
|
||||
transition: opacity 200ms;
|
||||
transition: opacity var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.rm_tag_filter .tag:hover {
|
||||
|
||||
@@ -19,6 +19,7 @@ body:not(.tts) #ttsExtensionNarrateAll {
|
||||
}
|
||||
|
||||
body.no-hotswap .hotswap,
|
||||
body.no-hotswap .hotswap~hr,
|
||||
body.no-timer .mes_timer,
|
||||
body.no-timestamps .timestamp,
|
||||
body.no-tokenCount .tokenCounterDisplay,
|
||||
@@ -28,6 +29,12 @@ body.hideChatAvatars .mesAvatarWrapper .avatar {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-hotswap #CharListButtonAndHotSwaps .flex-container {
|
||||
flex-wrap: nowrap;
|
||||
align-items: flex-end;
|
||||
flex-flow: row;
|
||||
}
|
||||
|
||||
body.hideChatAvatars .last_mes:not(.smallSysMes) {
|
||||
padding-bottom: 20px !important;
|
||||
}
|
||||
|
||||
@@ -198,7 +198,11 @@
|
||||
}
|
||||
|
||||
.world_entry {
|
||||
transition: opacity 500ms;
|
||||
transition: opacity var(--animation-duration-3x);
|
||||
}
|
||||
|
||||
.world_entry_edit {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.disabledWIEntry {
|
||||
@@ -267,7 +271,7 @@ select.keyselect+span.select2-container .select2-selection--multiple {
|
||||
|
||||
opacity: 0.5;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
transition: opacity 0.3s;
|
||||
transition: opacity var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.switch_input_type_icon:hover {
|
||||
|
||||
+647
-639
File diff suppressed because it is too large
Load Diff
+34
-84
@@ -10,7 +10,6 @@ import {
|
||||
SVGInject,
|
||||
Popper,
|
||||
initLibraryShims,
|
||||
slideToggle,
|
||||
default as libs,
|
||||
} from './lib.js';
|
||||
|
||||
@@ -10320,86 +10319,43 @@ function doDrawerOpenClick() {
|
||||
/**
|
||||
* Event handler to open or close a navbar drawer when a navbar icon is clicked.
|
||||
* Handles click events on .drawer-toggle elements.
|
||||
* @returns {void}
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
function doNavbarIconClick() {
|
||||
export async function doNavbarIconClick() {
|
||||
const icon = $(this).find('.drawer-icon');
|
||||
const drawer = $(this).parent().find('.drawer-content');
|
||||
if (drawer.hasClass('resizing')) { return; }
|
||||
const drawerWasOpenAlready = $(this).parent().find('.drawer-content').hasClass('openDrawer');
|
||||
const targetDrawerID = $(this).parent().find('.drawer-content').attr('id');
|
||||
const pinnedDrawerClicked = drawer.hasClass('pinnedOpen');
|
||||
|
||||
if (!drawerWasOpenAlready) { //to open the drawer
|
||||
$('.openDrawer').not('.pinnedOpen').addClass('resizing').each((_, el) => {
|
||||
slideToggle(el, {
|
||||
...getSlideToggleOptions(),
|
||||
onAnimationEnd: function (el) {
|
||||
el.closest('.drawer-content').classList.remove('resizing');
|
||||
},
|
||||
});
|
||||
});
|
||||
$('.openIcon').not('.drawerPinnedOpen').toggleClass('closedIcon openIcon');
|
||||
$('.openDrawer').not('.pinnedOpen').toggleClass('closedDrawer openDrawer');
|
||||
if (!drawerWasOpenAlready) {
|
||||
const $openDrawers = $('.openDrawer:not(.pinnedOpen)');
|
||||
const $openIcons = $('.openIcon:not(.drawerPinnedOpen)');
|
||||
for (const iconEl of $openIcons) {
|
||||
$(iconEl).toggleClass('closedIcon openIcon');
|
||||
}
|
||||
for (const el of $openDrawers) {
|
||||
$(el).toggleClass('closedDrawer openDrawer');
|
||||
}
|
||||
if ($openDrawers.length) {
|
||||
await delay(animation_duration);
|
||||
}
|
||||
icon.toggleClass('openIcon closedIcon');
|
||||
drawer.toggleClass('openDrawer closedDrawer');
|
||||
|
||||
//console.log(targetDrawerID);
|
||||
if (targetDrawerID === 'right-nav-panel') {
|
||||
$(this).closest('.drawer').find('.drawer-content').addClass('resizing').each((_, el) => {
|
||||
slideToggle(el, {
|
||||
...getSlideToggleOptions(),
|
||||
elementDisplayStyle: 'flex',
|
||||
onAnimationEnd: function (el) {
|
||||
el.closest('.drawer-content').classList.remove('resizing');
|
||||
favsToHotswap();
|
||||
$('#rm_print_characters_block').trigger('scroll');
|
||||
},
|
||||
});
|
||||
});
|
||||
} else {
|
||||
$(this).closest('.drawer').find('.drawer-content').addClass('resizing').each((_, el) => {
|
||||
slideToggle(el, {
|
||||
...getSlideToggleOptions(),
|
||||
onAnimationEnd: function (el) {
|
||||
el.closest('.drawer-content').classList.remove('resizing');
|
||||
},
|
||||
});
|
||||
});
|
||||
favsToHotswap();
|
||||
$('#rm_print_characters_block').trigger('scroll');
|
||||
}
|
||||
|
||||
// Set the height of "autoSetHeight" textareas within the drawer to their scroll height
|
||||
if (!CSS.supports('field-sizing', 'content')) {
|
||||
$(this).closest('.drawer').find('.drawer-content textarea.autoSetHeight').each(async function () {
|
||||
await resetScrollHeight($(this));
|
||||
return;
|
||||
});
|
||||
const textareas = $(this).closest('.drawer').find('.drawer-content textarea.autoSetHeight');
|
||||
for (const textarea of textareas) {
|
||||
await resetScrollHeight($(textarea));
|
||||
}
|
||||
}
|
||||
|
||||
} else if (drawerWasOpenAlready) { //to close manually
|
||||
} else if (drawerWasOpenAlready) {
|
||||
icon.toggleClass('closedIcon openIcon');
|
||||
|
||||
if (pinnedDrawerClicked) {
|
||||
$(drawer).addClass('resizing').each((_, el) => {
|
||||
slideToggle(el, {
|
||||
...getSlideToggleOptions(),
|
||||
onAnimationEnd: function (el) {
|
||||
el.classList.remove('resizing');
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
else {
|
||||
$('.openDrawer').not('.pinnedOpen').addClass('resizing').each((_, el) => {
|
||||
slideToggle(el, {
|
||||
...getSlideToggleOptions(),
|
||||
onAnimationEnd: function (el) {
|
||||
el.closest('.drawer-content').classList.remove('resizing');
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
drawer.toggleClass('closedDrawer openDrawer');
|
||||
}
|
||||
}
|
||||
@@ -12028,8 +11984,8 @@ jQuery(async function () {
|
||||
|
||||
$('.drawer-toggle').on('click', doNavbarIconClick);
|
||||
|
||||
$('html').on('touchstart mousedown', function (e) {
|
||||
var clickTarget = $(e.target);
|
||||
$('html').on('touchstart mousedown', async function (e) {
|
||||
const clickTarget = $(e.target);
|
||||
|
||||
if (isExportPopupOpen
|
||||
&& clickTarget.closest('#export_button').length == 0
|
||||
@@ -12050,28 +12006,21 @@ jQuery(async function () {
|
||||
'#toast-container',
|
||||
'.select2-results',
|
||||
];
|
||||
|
||||
for (const id of forbiddenTargets) {
|
||||
if (clickTarget.closest(id).length > 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var targetParentHasOpenDrawer = clickTarget.parents('.openDrawer').length;
|
||||
if (clickTarget.hasClass('drawer-icon') == false && !clickTarget.hasClass('openDrawer')) {
|
||||
if ($('.openDrawer').length !== 0) {
|
||||
if (targetParentHasOpenDrawer === 0) {
|
||||
//console.log($('.openDrawer').not('.pinnedOpen').length);
|
||||
$('.openDrawer').not('.pinnedOpen').addClass('resizing').each((_, el) => {
|
||||
slideToggle(el, {
|
||||
...getSlideToggleOptions(),
|
||||
onAnimationEnd: (el) => {
|
||||
el.closest('.drawer-content').classList.remove('resizing');
|
||||
},
|
||||
});
|
||||
});
|
||||
$('.openIcon').not('.drawerPinnedOpen').toggleClass('closedIcon openIcon');
|
||||
$('.openDrawer').not('.pinnedOpen').toggleClass('closedDrawer openDrawer');
|
||||
}
|
||||
// This autocloses open drawers that are not pinned if a click happens inside the app which does not target them.
|
||||
const targetParentHasOpenDrawer = clickTarget.parents('.openDrawer').length;
|
||||
if (!clickTarget.hasClass('drawer-icon') && !clickTarget.hasClass('openDrawer')) {
|
||||
const $openDrawers = $('.openDrawer').not('.pinnedOpen');
|
||||
if ($openDrawers.length && targetParentHasOpenDrawer === 0) {
|
||||
// Toggle icon and drawer classes
|
||||
$('.openIcon').not('.drawerPinnedOpen').toggleClass('closedIcon openIcon');
|
||||
$openDrawers.toggleClass('closedDrawer openDrawer');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -12085,6 +12034,7 @@ jQuery(async function () {
|
||||
const drawerContent = drawer.find('>.inline-drawer-content');
|
||||
icon.toggleClass('down up');
|
||||
icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up');
|
||||
drawer.trigger('inline-drawer-toggle');
|
||||
drawerContent.stop().slideToggle({
|
||||
complete: () => {
|
||||
$(this).css('height', '');
|
||||
@@ -12181,7 +12131,7 @@ jQuery(async function () {
|
||||
if (!(e.target instanceof HTMLElement)) return;
|
||||
if (e.target.matches('#OpenAllWIEntries')) {
|
||||
document.querySelectorAll('#world_popup_entries_list .inline-drawer').forEach((/** @type {HTMLElement} */ drawer) => {
|
||||
toggleDrawer(drawer, true);
|
||||
delay(0).then(() => toggleDrawer(drawer, true));
|
||||
});
|
||||
} else if (e.target.matches('#CloseAllWIEntries')) {
|
||||
document.querySelectorAll('#world_popup_entries_list .inline-drawer').forEach((/** @type {HTMLElement} */ drawer) => {
|
||||
|
||||
+137
-185
@@ -1,4 +1,4 @@
|
||||
import { DOMPurify, Bowser, slideToggle } from '../lib.js';
|
||||
import { DOMPurify, Bowser } from '../lib.js';
|
||||
|
||||
import {
|
||||
characters,
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
menu_type,
|
||||
substituteParams,
|
||||
sendTextareaMessage,
|
||||
getSlideToggleOptions,
|
||||
doNavbarIconClick,
|
||||
} from '../script.js';
|
||||
|
||||
import {
|
||||
@@ -473,54 +473,72 @@ const saveUserInputDebounced = debounce(saveUserInput);
|
||||
|
||||
// Make the DIV element draggable:
|
||||
|
||||
export function dragElement(elmnt) {
|
||||
var isHeaderBeingDragged = false;
|
||||
var isMouseDown = false;
|
||||
/**
|
||||
* Make the given element draggable. This is used for Moving UI.
|
||||
* @param {JQuery} $elmnt - The element to make draggable.
|
||||
*/
|
||||
export function dragElement($elmnt) {
|
||||
let actionType = null; // "drag" or "resize"
|
||||
let isMouseDown = false;
|
||||
|
||||
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
|
||||
var height, width, top, left, right, bottom,
|
||||
let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
|
||||
let height, width, top, left, right, bottom,
|
||||
maxX, maxY, winHeight, winWidth,
|
||||
topbar, topBarFirstX, topBarLastY;
|
||||
|
||||
var elmntName = elmnt.attr('id');
|
||||
console.debug(`dragElement called for ${elmntName}`);
|
||||
const elmntName = $elmnt.attr('id');
|
||||
const elmntNameEscaped = $.escapeSelector(elmntName);
|
||||
const elmntHeader = $(`#${elmntNameEscaped}header`);
|
||||
const $elmntHeader = $(`#${elmntNameEscaped}header`);
|
||||
|
||||
if (elmntHeader.length) {
|
||||
elmntHeader.off('mousedown').on('mousedown', (e) => { //listener for drag handle repositioning
|
||||
isHeaderBeingDragged = true;
|
||||
isMouseDown = true;
|
||||
observer.observe(elmnt.get(0), { attributes: true, attributeFilter: ['style'] });
|
||||
dragMouseDown(e);
|
||||
});
|
||||
$(elmnt).off('mousedown').on('mousedown', () => { //listener for resize
|
||||
isMouseDown = true;
|
||||
observer.observe(elmnt.get(0), { attributes: true, attributeFilter: ['style'] });
|
||||
});
|
||||
// Helper: Save position/size to state and emit events
|
||||
function savePositionAndSize() {
|
||||
if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {};
|
||||
power_user.movingUIState[elmntName].top = top;
|
||||
power_user.movingUIState[elmntName].left = left;
|
||||
power_user.movingUIState[elmntName].right = right;
|
||||
power_user.movingUIState[elmntName].bottom = bottom;
|
||||
power_user.movingUIState[elmntName].margin = 'unset';
|
||||
if (actionType === 'resize') {
|
||||
power_user.movingUIState[elmntName].width = width;
|
||||
power_user.movingUIState[elmntName].height = height;
|
||||
eventSource.emit('resizeUI', elmntName);
|
||||
}
|
||||
saveSettingsDebounced();
|
||||
}
|
||||
|
||||
// Helper: Clamp element within viewport
|
||||
function clampToViewport() {
|
||||
if (top <= 0) $elmnt.css('top', '0px');
|
||||
else if (maxY >= winHeight) $elmnt.css('top', winHeight - maxY + top - 1 + 'px');
|
||||
if (left <= 0) $elmnt.css('left', '0px');
|
||||
else if (maxX >= winWidth) $elmnt.css('left', winWidth - maxX + left - 1 + 'px');
|
||||
}
|
||||
|
||||
// Observer for style changes (position/size)
|
||||
const observer = new MutationObserver((mutations) => {
|
||||
const target = mutations[0].target;
|
||||
if (!$(target).is(':visible') //abort if element is invisible
|
||||
|| $(target).hasClass('resizing') //being auto-resized by other JS code
|
||||
|| Number((String(target.height).replace('px', ''))) < 50 //too short
|
||||
|| Number((String(target.width).replace('px', ''))) < 50 //too narrow
|
||||
|| power_user.movingUI === false // if MUI is not turned on
|
||||
|| isMobile() // if it's a mobile screen
|
||||
const $target = $(mutations[0].target);
|
||||
if (
|
||||
!$target.is(':visible') ||
|
||||
$target.hasClass('resizing') ||
|
||||
$target.height() < 50 ||
|
||||
$target.width() < 50 ||
|
||||
power_user.movingUI === false ||
|
||||
isMobile() ||
|
||||
!isMouseDown
|
||||
) {
|
||||
observer.disconnect();
|
||||
return;
|
||||
}
|
||||
|
||||
const style = getComputedStyle(target);
|
||||
const style = getComputedStyle($target[0]);
|
||||
height = parseInt(style.height);
|
||||
width = parseInt(style.width);
|
||||
top = parseInt(style.top);
|
||||
left = parseInt(style.left);
|
||||
right = parseInt(style.right);
|
||||
bottom = parseInt(style.bottom);
|
||||
maxX = parseInt(width + left);
|
||||
maxY = parseInt(height + top);
|
||||
maxX = width + left;
|
||||
maxY = height + top;
|
||||
winWidth = window.innerWidth;
|
||||
winHeight = window.innerHeight;
|
||||
|
||||
@@ -529,182 +547,119 @@ export function dragElement(elmnt) {
|
||||
topBarFirstX = parseInt(topbarstyle.marginInline);
|
||||
topBarLastY = parseInt(topbarstyle.height);
|
||||
|
||||
//prepare an empty poweruser object for the item being altered if we don't have one already
|
||||
if (!power_user.movingUIState[elmntName]) {
|
||||
console.debug(`adding config property for ${elmntName}`);
|
||||
power_user.movingUIState[elmntName] = {};
|
||||
}
|
||||
// Prepare state object if missing
|
||||
if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {};
|
||||
|
||||
//handle resizing
|
||||
if (!isHeaderBeingDragged && isMouseDown) { //if user is dragging the resize handle (not in header)
|
||||
let imgHeight, imgWidth, imageAspectRatio;
|
||||
if (actionType === 'resize') {
|
||||
let containerAspectRatio = height / width;
|
||||
|
||||
//force aspect ratio for zoomed avatars
|
||||
if ($(elmnt).attr('id').startsWith('zoomFor_')) {
|
||||
let zoomedAvatarImage = $(elmnt).find('.zoomed_avatar_img');
|
||||
imgHeight = zoomedAvatarImage.height();
|
||||
imgWidth = zoomedAvatarImage.width();
|
||||
imageAspectRatio = imgHeight / imgWidth;
|
||||
|
||||
// Maintain aspect ratio
|
||||
if ($elmnt.attr('id').startsWith('zoomFor_')) {
|
||||
const zoomedAvatarImage = $elmnt.find('.zoomed_avatar_img');
|
||||
const imgHeight = zoomedAvatarImage.height();
|
||||
const imgWidth = zoomedAvatarImage.width();
|
||||
const imageAspectRatio = imgHeight / imgWidth;
|
||||
if (containerAspectRatio !== imageAspectRatio) {
|
||||
elmnt.css('width', elmnt.width());
|
||||
elmnt.css('height', elmnt.width() * imageAspectRatio);
|
||||
$elmnt.css('width', $elmnt.width());
|
||||
$elmnt.css('height', $elmnt.width() * imageAspectRatio);
|
||||
}
|
||||
|
||||
// Prevent resizing offscreen
|
||||
if (top + elmnt.height() >= winHeight) {
|
||||
elmnt.css('height', winHeight - top - 1 + 'px');
|
||||
elmnt.css('width', (winHeight - top - 1) / imageAspectRatio + 'px');
|
||||
if (top + $elmnt.height() >= winHeight) {
|
||||
$elmnt.css('height', winHeight - top - 1 + 'px');
|
||||
$elmnt.css('width', (winHeight - top - 1) / imageAspectRatio + 'px');
|
||||
}
|
||||
|
||||
if (left + elmnt.width() >= winWidth) {
|
||||
elmnt.css('width', winWidth - left - 1 + 'px');
|
||||
elmnt.css('height', (winWidth - left - 1) * imageAspectRatio + 'px');
|
||||
}
|
||||
} else { //prevent divs that are not zoomedAvatars from resizing offscreen
|
||||
|
||||
if (top + elmnt.height() >= winHeight) {
|
||||
elmnt.css('height', winHeight - top - 1 + 'px');
|
||||
}
|
||||
|
||||
if (left + elmnt.width() >= winWidth) {
|
||||
elmnt.css('width', winWidth - left - 1 + 'px');
|
||||
if (left + $elmnt.width() >= winWidth) {
|
||||
$elmnt.css('width', winWidth - left - 1 + 'px');
|
||||
$elmnt.css('height', (winWidth - left - 1) * imageAspectRatio + 'px');
|
||||
}
|
||||
} else {
|
||||
if (top + $elmnt.height() >= winHeight) $elmnt.css('height', winHeight - top - 1 + 'px');
|
||||
if (left + $elmnt.width() >= winWidth) $elmnt.css('width', winWidth - left - 1 + 'px');
|
||||
}
|
||||
|
||||
//prevent resizing from top left into the top bar
|
||||
if (top < topBarLastY && maxX >= topBarFirstX && left <= topBarFirstX) {
|
||||
elmnt.css('width', width - 1 + 'px');
|
||||
$elmnt.css('width', width - 1 + 'px');
|
||||
}
|
||||
|
||||
//set css to prevent weird resize behavior (does not save)
|
||||
elmnt.css('left', left);
|
||||
elmnt.css('top', top);
|
||||
|
||||
//set a listener for mouseup to save new width/height
|
||||
$(window).off('mouseup').on('mouseup', () => {
|
||||
console.log(`Saving ${elmntName} Height/Width`);
|
||||
// check if the height or width actually changed
|
||||
if (power_user.movingUIState[elmntName].width === elmnt.width() && power_user.movingUIState[elmntName].height === elmnt.height()) {
|
||||
console.log('no change detected, aborting save');
|
||||
return;
|
||||
}
|
||||
|
||||
power_user.movingUIState[elmntName].width = width;
|
||||
power_user.movingUIState[elmntName].height = height;
|
||||
eventSource.emit('resizeUI', elmntName);
|
||||
saveSettingsDebounced();
|
||||
imgHeight = null;
|
||||
imgWidth = null;
|
||||
height = null;
|
||||
width = null;
|
||||
|
||||
containerAspectRatio = null;
|
||||
imageAspectRatio = null;
|
||||
$(window).off('mouseup');
|
||||
$elmnt.css({ left, top });
|
||||
$elmnt.off('mouseup').on('mouseup', () => {
|
||||
if (
|
||||
power_user.movingUIState[elmntName].width === $elmnt.width() &&
|
||||
power_user.movingUIState[elmntName].height === $elmnt.height()
|
||||
) return;
|
||||
savePositionAndSize();
|
||||
observer.disconnect();
|
||||
});
|
||||
} else if (actionType === 'drag') {
|
||||
clampToViewport();
|
||||
}
|
||||
|
||||
//only record position changes if header is being dragged
|
||||
power_user.movingUIState[elmntName].top = top;
|
||||
power_user.movingUIState[elmntName].left = left;
|
||||
power_user.movingUIState[elmntName].right = right;
|
||||
power_user.movingUIState[elmntName].bottom = bottom;
|
||||
power_user.movingUIState[elmntName].margin = 'unset';
|
||||
|
||||
//handle dragging hit detection to prevent dragging offscreen
|
||||
if (isHeaderBeingDragged && isMouseDown) {
|
||||
|
||||
if (top <= 0) {
|
||||
elmnt.css('top', '0px');
|
||||
} else if (maxY >= winHeight) {
|
||||
elmnt.css('top', winHeight - maxY + top - 1 + 'px');
|
||||
}
|
||||
|
||||
if (left <= 0) {
|
||||
elmnt.css('left', '0px');
|
||||
} else if (maxX >= winWidth) {
|
||||
elmnt.css('left', winWidth - maxX + left - 1 + 'px');
|
||||
}
|
||||
}
|
||||
|
||||
// Check if the element header exists and set the reposition listener on the grabber in the header
|
||||
if (elmntHeader.length) {
|
||||
elmntHeader.off('mousedown').on('mousedown', (e) => {
|
||||
dragMouseDown(e);
|
||||
});
|
||||
} else { //if no header, put the listener on the elmnt itself.
|
||||
elmnt.off('mousedown').on('mousedown', dragMouseDown);
|
||||
}
|
||||
// Always update position in state
|
||||
savePositionAndSize();
|
||||
});
|
||||
|
||||
// Mouse event handlers
|
||||
function dragMouseDown(e) {
|
||||
|
||||
if (e) {
|
||||
isHeaderBeingDragged = true;
|
||||
actionType = 'drag';
|
||||
isMouseDown = true;
|
||||
e.preventDefault();
|
||||
pos3 = e.clientX; //mouse X at click
|
||||
pos4 = e.clientY; //mouse Y at click
|
||||
pos3 = e.clientX;
|
||||
pos4 = e.clientY;
|
||||
}
|
||||
$(document).on('mouseup', closeDragElement);
|
||||
$(document).on('mousemove', elementDrag);
|
||||
}
|
||||
|
||||
function elementDrag(e) {
|
||||
if (!power_user.movingUIState[elmntName]) {
|
||||
power_user.movingUIState[elmntName] = {};
|
||||
}
|
||||
|
||||
e = e || window.event;
|
||||
if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {};
|
||||
e.preventDefault();
|
||||
|
||||
pos1 = pos3 - e.clientX; //X change amt (-1 or 1)
|
||||
pos2 = pos4 - e.clientY; //Y change amt (-1 or 1)
|
||||
pos3 = e.clientX; //new mouse X
|
||||
pos4 = e.clientY; //new mouse Y
|
||||
|
||||
elmnt.attr('data-dragged', 'true');
|
||||
|
||||
//first set css to computed values to avoid CSS NaN results from 'auto', etc
|
||||
elmnt.css('left', (elmnt.offset().left) + 'px');
|
||||
elmnt.css('top', (elmnt.offset().top) + 'px');
|
||||
|
||||
//then update element position styles to account for drag changes
|
||||
elmnt.css('margin', 'unset');
|
||||
elmnt.css('left', (elmnt.offset().left - pos1) + 'px');
|
||||
elmnt.css('top', (elmnt.offset().top - pos2) + 'px');
|
||||
/* elmnt.css('right', ((winWidth - maxX) + 'px'));
|
||||
elmnt.css('bottom', ((winHeight - maxY) + 'px')); */
|
||||
|
||||
// Height/Width here are for visuals only, and are not saved to settings.
|
||||
// This is required because some divs do hot have a set width/height
|
||||
// and will default to shrink to min value of 100px set in CSS file
|
||||
elmnt.css('height', height);
|
||||
elmnt.css('width', width);
|
||||
return;
|
||||
pos1 = pos3 - e.clientX;
|
||||
pos2 = pos4 - e.clientY;
|
||||
pos3 = e.clientX;
|
||||
pos4 = e.clientY;
|
||||
$elmnt.attr('data-dragged', 'true');
|
||||
$elmnt.css('left', ($elmnt.offset().left - pos1) + 'px');
|
||||
$elmnt.css('top', ($elmnt.offset().top - pos2) + 'px');
|
||||
$elmnt.css('margin', 'unset');
|
||||
$elmnt.css('height', height);
|
||||
$elmnt.css('width', width);
|
||||
}
|
||||
|
||||
function closeDragElement() {
|
||||
console.debug('drag finished');
|
||||
isHeaderBeingDragged = false;
|
||||
isMouseDown = false;
|
||||
actionType = null;
|
||||
$(document).off('mouseup', closeDragElement);
|
||||
$(document).off('mousemove', elementDrag);
|
||||
$('body').css('overflow', '');
|
||||
// Clear the "data-dragged" attribute
|
||||
elmnt.attr('data-dragged', 'false');
|
||||
$elmnt.attr('data-dragged', 'false');
|
||||
observer.disconnect();
|
||||
console.debug(`Saving ${elmntName} UI position`);
|
||||
saveSettingsDebounced();
|
||||
top = null;
|
||||
left = null;
|
||||
right = null;
|
||||
bottom = null;
|
||||
maxX = null;
|
||||
maxY = null;
|
||||
savePositionAndSize();
|
||||
}
|
||||
|
||||
// Setup event listeners
|
||||
if ($elmntHeader.length) {
|
||||
$elmntHeader.off('mousedown').on('mousedown', (e) => {
|
||||
if ($(e.target).hasClass('drag-grabber')) {
|
||||
actionType = 'drag';
|
||||
isMouseDown = true;
|
||||
observer.observe($elmnt[0], { attributes: true, attributeFilter: ['style'] });
|
||||
dragMouseDown(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$elmnt.off('mousedown').on('mousedown', (e) => {
|
||||
const rect = $elmnt[0].getBoundingClientRect();
|
||||
const resizeMargin = 16;
|
||||
const isNearRight = e.clientX > rect.right - resizeMargin;
|
||||
const isNearBottom = e.clientY > rect.bottom - resizeMargin;
|
||||
if (isNearRight && isNearBottom) {
|
||||
actionType = 'resize';
|
||||
isMouseDown = true;
|
||||
observer.observe($elmnt[0], { attributes: true, attributeFilter: ['style'] });
|
||||
}
|
||||
});
|
||||
|
||||
$elmnt.off('mouseup').on('mouseup', () => {
|
||||
isMouseDown = false;
|
||||
actionType = null;
|
||||
observer.disconnect();
|
||||
});
|
||||
}
|
||||
|
||||
export async function initMovingUI() {
|
||||
@@ -775,9 +730,8 @@ export function initRossMods() {
|
||||
$(RightNavDrawerIcon).removeClass('drawerPinnedOpen');
|
||||
|
||||
if ($(RightNavPanel).hasClass('openDrawer') && $('.openDrawer').length > 1) {
|
||||
slideToggle(RightNavPanel, getSlideToggleOptions());
|
||||
$(RightNavDrawerIcon).toggleClass('closedIcon openIcon');
|
||||
$(RightNavPanel).toggleClass('openDrawer closedDrawer');
|
||||
const toggle = $('#unimportantYes');
|
||||
doNavbarIconClick.call(toggle);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -793,14 +747,13 @@ export function initRossMods() {
|
||||
$(LeftNavDrawerIcon).removeClass('drawerPinnedOpen');
|
||||
|
||||
if ($(LeftNavPanel).hasClass('openDrawer') && $('.openDrawer').length > 1) {
|
||||
slideToggle(LeftNavPanel, getSlideToggleOptions());
|
||||
$(LeftNavDrawerIcon).toggleClass('closedIcon openIcon');
|
||||
$(LeftNavPanel).toggleClass('openDrawer closedDrawer');
|
||||
const toggle = $('#ai-config-button>.drawer-toggle');
|
||||
doNavbarIconClick.call(toggle);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(WIPanelPin).on('click', function () {
|
||||
$(WIPanelPin).on('click', async function () {
|
||||
accountStorage.setItem('WINavLockOn', $(WIPanelPin).prop('checked'));
|
||||
if ($(WIPanelPin).prop('checked') == true) {
|
||||
console.debug('adding pin class to WI');
|
||||
@@ -813,9 +766,8 @@ export function initRossMods() {
|
||||
|
||||
if ($(WorldInfo).hasClass('openDrawer') && $('.openDrawer').length > 1) {
|
||||
console.debug('closing WI after lock removal');
|
||||
slideToggle(WorldInfo, getSlideToggleOptions());
|
||||
$(WIDrawerIcon).toggleClass('closedIcon openIcon');
|
||||
$(WorldInfo).toggleClass('openDrawer closedDrawer');
|
||||
const toggle = $('#WI-SP-button>.drawer-toggle');
|
||||
doNavbarIconClick.call(toggle);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import {
|
||||
MAX_INJECTION_DEPTH,
|
||||
animation_duration,
|
||||
chat_metadata,
|
||||
eventSource,
|
||||
event_types,
|
||||
extension_prompt_roles,
|
||||
extension_prompt_types,
|
||||
saveSettingsDebounced,
|
||||
this_chid,
|
||||
} from '../script.js';
|
||||
@@ -347,7 +349,7 @@ export function setFloatingPrompt() {
|
||||
}
|
||||
|
||||
if (lastMessageNumber <= 0 || chat_metadata[metadata_keys.interval] <= 0) {
|
||||
context.setExtensionPrompt(MODULE_NAME, '');
|
||||
context.setExtensionPrompt(MODULE_NAME, '', extension_prompt_types.NONE, MAX_INJECTION_DEPTH);
|
||||
$('#extension_floating_counter').text('(disabled)');
|
||||
shouldWIAddPrompt = false;
|
||||
return;
|
||||
@@ -380,7 +382,7 @@ export function setFloatingPrompt() {
|
||||
}
|
||||
context.setExtensionPrompt(
|
||||
MODULE_NAME,
|
||||
prompt,
|
||||
String(prompt),
|
||||
chat_metadata[metadata_keys.position],
|
||||
chat_metadata[metadata_keys.depth],
|
||||
extension_settings.note.allowWIScan,
|
||||
@@ -396,37 +398,38 @@ function onANMenuItemClick() {
|
||||
}
|
||||
|
||||
//show AN if it's hidden
|
||||
if ($('#floatingPrompt').css('display') !== 'flex') {
|
||||
$('#floatingPrompt').addClass('resizing');
|
||||
$('#floatingPrompt').css('display', 'flex');
|
||||
$('#floatingPrompt').css('opacity', 0.0);
|
||||
$('#floatingPrompt').transition({
|
||||
const $ANcontainer = $('#floatingPrompt');
|
||||
if ($ANcontainer.css('display') !== 'flex') {
|
||||
$ANcontainer.addClass('resizing');
|
||||
$ANcontainer.css('display', 'flex');
|
||||
$ANcontainer.css('opacity', 0.0);
|
||||
$ANcontainer.transition({
|
||||
opacity: 1.0,
|
||||
duration: animation_duration,
|
||||
}, async function () {
|
||||
await delay(50);
|
||||
$('#floatingPrompt').removeClass('resizing');
|
||||
$ANcontainer.removeClass('resizing');
|
||||
});
|
||||
|
||||
//auto-open the main AN inline drawer
|
||||
if ($('#ANBlockToggle')
|
||||
.siblings('.inline-drawer-content')
|
||||
.css('display') !== 'block') {
|
||||
$('#floatingPrompt').addClass('resizing');
|
||||
$('#ANBlockToggle').click();
|
||||
$ANcontainer.addClass('resizing');
|
||||
$('#ANBlockToggle').trigger('click');
|
||||
}
|
||||
} else {
|
||||
//hide AN if it's already displayed
|
||||
$('#floatingPrompt').addClass('resizing');
|
||||
$('#floatingPrompt').transition({
|
||||
$ANcontainer.addClass('resizing');
|
||||
$ANcontainer.transition({
|
||||
opacity: 0.0,
|
||||
duration: animation_duration,
|
||||
}, async function () {
|
||||
await delay(50);
|
||||
$('#floatingPrompt').removeClass('resizing');
|
||||
$ANcontainer.removeClass('resizing');
|
||||
});
|
||||
setTimeout(function () {
|
||||
$('#floatingPrompt').hide();
|
||||
$ANcontainer.hide();
|
||||
}, animation_duration);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
.asset-download-button-text {
|
||||
font: bold 20px "Quicksand", san-serif;
|
||||
color: #ffffff;
|
||||
transition: all 0.2s;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.asset-download-button-loading .asset-download-button-text {
|
||||
|
||||
@@ -4,6 +4,8 @@ import {
|
||||
characters,
|
||||
getRequestHeaders,
|
||||
event_types,
|
||||
animation_duration,
|
||||
animation_easing,
|
||||
} from '../../../script.js';
|
||||
import { groups, selected_group } from '../../group-chats.js';
|
||||
import { loadFileToDocument, delay, getBase64Async, getSanitizedFilename } from '../../utils.js';
|
||||
@@ -32,7 +34,15 @@ let galleryMaxRows = 3;
|
||||
$('#movingDivs').on('click', '.dragClose', function () {
|
||||
const relatedId = $(this).data('related-id');
|
||||
if (!relatedId) return;
|
||||
$(`#movingDivs > .draggable[id="${relatedId}"]`).remove();
|
||||
const relatedElement = $(`#movingDivs > .draggable[id="${relatedId}"]`);
|
||||
relatedElement.transition({
|
||||
opacity: 0,
|
||||
duration: animation_duration,
|
||||
easing: animation_easing,
|
||||
complete: () => {
|
||||
relatedElement.remove();
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
const CUSTOM_GALLERY_REMOVED_EVENT = 'galleryRemoved';
|
||||
@@ -373,7 +383,7 @@ async function makeMovable(url) {
|
||||
const id = 'gallery';
|
||||
const template = $('#generic_draggable_template').html();
|
||||
const newElement = $(template);
|
||||
newElement.css('background-color', 'var(--SmartThemeBlurTintColor)');
|
||||
newElement.css({ 'background-color': 'var(--SmartThemeBlurTintColor)', 'opacity': 0 });
|
||||
newElement.attr('forChar', id);
|
||||
newElement.attr('id', id);
|
||||
newElement.find('.drag-grabber').attr('id', `${id}header`);
|
||||
@@ -505,6 +515,11 @@ async function makeMovable(url) {
|
||||
loadMovingUIState();
|
||||
$(`.draggable[forChar="${id}"]`).css('display', 'block');
|
||||
dragElement(newElement);
|
||||
newElement.transition({
|
||||
opacity: 1,
|
||||
duration: animation_duration,
|
||||
easing: animation_easing,
|
||||
});
|
||||
|
||||
$(`.draggable[forChar="${id}"] img`).on('dragstart', (e) => {
|
||||
console.log('saw drag on avatar!');
|
||||
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
getMaxContextSize,
|
||||
setExtensionPrompt,
|
||||
streamingProcessor,
|
||||
animation_easing,
|
||||
} from '../../../script.js';
|
||||
import { is_group_generating, selected_group } from '../../group-chats.js';
|
||||
import { loadMovingUIState } from '../../power-user.js';
|
||||
@@ -972,6 +973,7 @@ function doPopout(e) {
|
||||
</div>`;
|
||||
const newElement = $(template);
|
||||
newElement.attr('id', 'summaryExtensionPopout')
|
||||
.css('opacity', 0)
|
||||
.removeClass('zoomed_avatar')
|
||||
.addClass('draggable')
|
||||
.empty();
|
||||
@@ -980,13 +982,13 @@ function doPopout(e) {
|
||||
originalElement.html('<div class="flex-container alignitemscenter justifyCenter wide100p"><small>Currently popped out</small></div>');
|
||||
newElement.append(controlBarHtml).append(originalHTMLClone);
|
||||
$('body').append(newElement);
|
||||
newElement.transition({ opacity: 1, duration: animation_duration, easing: animation_easing });
|
||||
$('#summaryExtensionDrawerContents').addClass('scrollableInnerFull');
|
||||
setMemoryContext(prevSummaryBoxContents, false); //paste prev summary box contents into popout box
|
||||
setupListeners();
|
||||
loadSettings();
|
||||
loadMovingUIState();
|
||||
|
||||
$('#summaryExtensionPopout').fadeIn(animation_duration);
|
||||
dragElement(newElement);
|
||||
|
||||
//setup listener for close button to restore extensions menu
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#qr--bar {
|
||||
outline: none;
|
||||
margin: 0;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
opacity: 0.7;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -34,14 +34,12 @@
|
||||
right: 0.25em;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/*hide QR popout for mobile*/
|
||||
@media screen and (max-width: 1000px) {
|
||||
#qr--bar > #qr--popoutTrigger {
|
||||
display:none;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#qr--bar.popoutVisible {
|
||||
padding-right: 2.5em;
|
||||
}
|
||||
@@ -61,9 +59,8 @@
|
||||
aspect-ratio: 1 / 1;
|
||||
font-size: 20px;
|
||||
opacity: 0.5;
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
#qr--popout > .qr--body {
|
||||
overflow-y: auto;
|
||||
}
|
||||
@@ -124,7 +121,7 @@
|
||||
padding: 3px 5px;
|
||||
margin: 3px 0;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -175,7 +172,7 @@
|
||||
overflow: visible;
|
||||
}
|
||||
.ctx-menu .ctx-item .qr--hidden {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
.list-group .list-group-item.ctx-header {
|
||||
font-weight: bold;
|
||||
@@ -248,7 +245,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
opacity: 0;
|
||||
transition: 100ms;
|
||||
transition: var(--animation-duration);
|
||||
margin: -2px 0 -11px 0;
|
||||
position: relative;
|
||||
}
|
||||
@@ -461,7 +458,7 @@
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
transition: 200ms;
|
||||
transition: var(--animation-duration-2x);
|
||||
border-color: transparent;
|
||||
}
|
||||
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor.qr--isExecuting.qr--isPaused #qr--modal-debugButtons .menu_button:not(#qr--modal-minimize, #qr--modal-maximize) {
|
||||
@@ -492,7 +489,7 @@
|
||||
width: 6px;
|
||||
background-color: var(--SmartThemeBorderColor);
|
||||
border: 2px solid var(--SmartThemeBlurTintColor);
|
||||
transition: border-color 200ms, background-color 200ms;
|
||||
transition: border-color var(--animation-duration-2x), background-color var(--animation-duration-2x);
|
||||
cursor: w-resize;
|
||||
}
|
||||
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor.qr--isExecuting #qr--resizeHandle:hover {
|
||||
@@ -574,7 +571,7 @@
|
||||
gap: 1em;
|
||||
text-align: left;
|
||||
opacity: 0.75;
|
||||
transition: 200ms;
|
||||
transition: var(--animation-duration-2x);
|
||||
cursor: pointer;
|
||||
}
|
||||
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor > #qr--main > .qr--labels > label .qr--modal-switcherList .qr--modal-switcherItem:hover,
|
||||
@@ -736,7 +733,7 @@
|
||||
display: flex;
|
||||
}
|
||||
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor #qr--modal-executeButtons #qr--modal-execute {
|
||||
transition: 200ms;
|
||||
transition: var(--animation-duration-2x);
|
||||
filter: grayscale(0);
|
||||
}
|
||||
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor #qr--modal-executeButtons #qr--modal-execute.qr--busy {
|
||||
@@ -825,7 +822,7 @@
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
right: calc(100% - var(--prog) * 1%);
|
||||
transition: 200ms;
|
||||
transition: var(--animation-duration-2x);
|
||||
}
|
||||
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor #qr--modal-executeProgress.qr--paused:after {
|
||||
animation-name: qr--progressPulse;
|
||||
@@ -1053,7 +1050,7 @@
|
||||
white-space: pre;
|
||||
font-weight: normal;
|
||||
box-shadow: 0 0 0;
|
||||
transition: 200ms;
|
||||
transition: var(--animation-duration-2x);
|
||||
}
|
||||
.popup:has(.qr--transferModal) .popup-button-ok:after {
|
||||
content: 'Transfer';
|
||||
@@ -1068,7 +1065,7 @@
|
||||
white-space: pre;
|
||||
font-weight: normal;
|
||||
box-shadow: 0 0 0;
|
||||
transition: 200ms;
|
||||
transition: var(--animation-duration-2x);
|
||||
}
|
||||
.popup:has(.qr--transferModal) .qr--copy:after {
|
||||
content: 'Copy';
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,7 @@
|
||||
|
||||
#scoped_scripts_block {
|
||||
opacity: 1;
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
transition: opacity var(--animation-duration-2x) ease-in-out;
|
||||
}
|
||||
|
||||
#scoped_scripts_block .move_to_scoped {
|
||||
@@ -78,7 +78,7 @@ input.enable_scoped {
|
||||
cursor: pointer;
|
||||
opacity: 0.5;
|
||||
filter: grayscale(0.5);
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
transition: opacity var(--animation-duration-2x) ease-in-out;
|
||||
}
|
||||
|
||||
.regex-toggle-off:hover {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
outline: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
opacity: 0.7;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@@ -2153,20 +2153,22 @@ export function getFreeName(name, list, numberFormatter = (n) => ` #${n}`) {
|
||||
*/
|
||||
export function toggleDrawer(drawer, expand = true) {
|
||||
/** @type {HTMLElement} */
|
||||
const icon = drawer.querySelector('.inline-drawer-icon');
|
||||
const icon = drawer.querySelector(':scope > .inline-drawer-header .inline-drawer-icon');
|
||||
/** @type {HTMLElement} */
|
||||
const content = drawer.querySelector('.inline-drawer-content');
|
||||
const content = drawer.querySelector(':scope > .inline-drawer-content');
|
||||
|
||||
if (expand) {
|
||||
icon.classList.remove('up', 'fa-circle-chevron-up');
|
||||
icon.classList.add('down', 'fa-circle-chevron-down');
|
||||
content.style.display = 'block';
|
||||
} else {
|
||||
icon.classList.remove('down', 'fa-circle-chevron-down');
|
||||
icon.classList.add('up', 'fa-circle-chevron-up');
|
||||
content.style.display = 'block';
|
||||
} else {
|
||||
icon.classList.remove('up', 'fa-circle-chevron-up');
|
||||
icon.classList.add('down', 'fa-circle-chevron-down');
|
||||
content.style.display = 'none';
|
||||
}
|
||||
|
||||
drawer.dispatchEvent(new CustomEvent('inline-drawer-toggle', { bubbles: true }));
|
||||
|
||||
// Set the height of "autoSetHeight" textareas within the inline-drawer to their scroll height
|
||||
if (!CSS.supports('field-sizing', 'content')) {
|
||||
content.querySelectorAll('textarea.autoSetHeight').forEach(resetScrollHeight);
|
||||
|
||||
+688
-757
File diff suppressed because it is too large
Load Diff
+133
-72
@@ -14,6 +14,7 @@
|
||||
@import url(css/data-maid.css);
|
||||
|
||||
:root {
|
||||
interpolate-size: allow-keywords;
|
||||
--doc-height: 100%;
|
||||
--transparent: rgba(0, 0, 0, 0);
|
||||
|
||||
@@ -122,7 +123,9 @@
|
||||
--inline-avatar-small-factor: 0.6;
|
||||
|
||||
--animation-duration: 125ms;
|
||||
--animation-duration-slow: calc(var(--animation-duration) * 3);
|
||||
--animation-duration-2x: calc(var(--animation-duration) * 2);
|
||||
--animation-duration-3x: calc(var(--animation-duration) * 3);
|
||||
--animation-duration-slow: var(--animation-duration-3x);
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -719,7 +722,7 @@ hr {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: background-image 0.5s ease-in-out;
|
||||
transition: background-image var(--animation-duration-3x) ease-in-out;
|
||||
}
|
||||
|
||||
/* Background fitting options */
|
||||
@@ -835,7 +838,7 @@ body.reduced-motion #bg_custom {
|
||||
cursor: -webkit-grab;
|
||||
display: none;
|
||||
filter: drop-shadow(0px 0px 0px black);
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
font-size: calc(var(--mainFontSize)*1.3);
|
||||
}
|
||||
|
||||
@@ -851,7 +854,7 @@ body .panelControlBar {
|
||||
min-width: 55px;
|
||||
justify-content: flex-end;
|
||||
gap: 0px;
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.zoomed_avatar .panelControlBar {
|
||||
@@ -973,7 +976,7 @@ body .panelControlBar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: opacity 300ms;
|
||||
transition: opacity var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
#rightSendForm>div:hover,
|
||||
@@ -1000,7 +1003,7 @@ body .panelControlBar {
|
||||
padding-right: 2px;
|
||||
place-self: center;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
@@ -1047,7 +1050,7 @@ body .panelControlBar {
|
||||
padding-right: 2px;
|
||||
place-self: center;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
opacity: 1;
|
||||
display: none;
|
||||
|
||||
@@ -1094,7 +1097,7 @@ body .panelControlBar {
|
||||
z-index: 2001;
|
||||
margin-left: 10px;
|
||||
padding: 0;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
order: 2;
|
||||
@@ -1337,7 +1340,7 @@ body.swipeAllMessages .mes:not(.last_mes) .swipes-counter {
|
||||
border: var(--avatar-base-border-radius) solid var(--SmartThemeBodyColor);
|
||||
margin: var(--avatar-base-border-radius);
|
||||
cursor: pointer;
|
||||
transition: filter 0.2s ease-in-out;
|
||||
transition: filter var(--animation-duration) ease-in-out;
|
||||
}
|
||||
|
||||
.add_avatar:hover {
|
||||
@@ -1350,7 +1353,7 @@ body.swipeAllMessages .mes:not(.last_mes) .swipes-counter {
|
||||
border-radius: var(--avatar-base-border-radius-round);
|
||||
border-style: none;
|
||||
flex: 1;
|
||||
transition: 250ms;
|
||||
transition: var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.last_mes .mesAvatarWrapper {
|
||||
@@ -1542,7 +1545,7 @@ button {
|
||||
100% var(--progWidthClip),
|
||||
100% 100%,
|
||||
0% 100%);
|
||||
transition: clip-path 200ms;
|
||||
transition: clip-path var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
#send_textarea:placeholder-shown {
|
||||
@@ -2493,8 +2496,8 @@ body[data-stscript-style] .hljs.language-stscript {
|
||||
margin: 3px;
|
||||
opacity: 0.75;
|
||||
filter: grayscale(1);
|
||||
-webkit-transition: all 250ms ease-in-out;
|
||||
transition: all 250ms ease-in-out;
|
||||
-webkit-transition: all var(--animation-duration-2x) ease-in-out;
|
||||
transition: all var(--animation-duration-2x) ease-in-out;
|
||||
}
|
||||
|
||||
#character_popup .editor_maximize:hover {
|
||||
@@ -2648,8 +2651,8 @@ input[type="file"] {
|
||||
margin-top: 0;
|
||||
padding: 1px;
|
||||
filter: grayscale(1) brightness(75%);
|
||||
-webkit-transition: all 0.5s ease-in-out;
|
||||
transition: all 0.5s ease-in-out;
|
||||
-webkit-transition: all var(--animation-duration-3x) ease-in-out;
|
||||
transition: all var(--animation-duration-3x) ease-in-out;
|
||||
}
|
||||
|
||||
.right_menu_button:hover {
|
||||
@@ -2669,7 +2672,7 @@ input[type="file"] {
|
||||
#lm_button_panel_pin_div,
|
||||
#WI_button_panel_pin_div {
|
||||
opacity: 0.5;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
#rm_button_panel_pin_div:hover,
|
||||
@@ -2805,7 +2808,6 @@ input[type="file"] {
|
||||
}
|
||||
|
||||
#rm_extensions_block {
|
||||
display: none;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
@@ -2830,6 +2832,7 @@ input[type="file"] {
|
||||
margin: 0;
|
||||
right: unset;
|
||||
width: calc(((100dvw - var(--sheldWidth)) / 2) - 1px);
|
||||
height: unset;
|
||||
|
||||
}
|
||||
|
||||
@@ -2871,7 +2874,7 @@ input[type="file"] {
|
||||
aspect-ratio: 1 / 1;
|
||||
font-size: 20px;
|
||||
opacity: 0.5;
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.floating_panel_maximize:hover,
|
||||
@@ -2885,7 +2888,7 @@ input[type="file"] {
|
||||
aspect-ratio: 1 / 1;
|
||||
font-size: calc(var(--mainFontSize)*1.3);
|
||||
opacity: 0.5;
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
filter: drop-shadow(0px 0px 2px black);
|
||||
text-shadow: none;
|
||||
}
|
||||
@@ -2934,7 +2937,6 @@ select option:not(:checked) {
|
||||
/*#######################################################################*/
|
||||
|
||||
#rm_api_block {
|
||||
display: none;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
@@ -3021,7 +3023,7 @@ select option:not(:checked) {
|
||||
|
||||
#rm_characters_block {
|
||||
display: flex;
|
||||
overflow-y: auto;
|
||||
overflow-y: hidden;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -3321,7 +3323,7 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
||||
text-shadow: none;
|
||||
margin: 0;
|
||||
filter: drop-shadow(0px 0px 3px white);
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
transition: opacity var(--animation-duration-2x) ease-in-out;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -3474,7 +3476,7 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
transition: 0.2s;
|
||||
transition: var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.avatar-container {
|
||||
@@ -3769,7 +3771,7 @@ grammarly-extension {
|
||||
width: min-content;
|
||||
cursor: pointer;
|
||||
margin: 5px 0;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -3835,7 +3837,7 @@ grammarly-extension {
|
||||
background-color: var(--black30a);
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
cursor: grab;
|
||||
transition: background-color 200ms ease-in-out;
|
||||
transition: background-color var(--animation-duration-2x) ease-in-out;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
display: flex;
|
||||
@@ -4009,7 +4011,7 @@ input[type="checkbox"]::before {
|
||||
width: 0.65em;
|
||||
height: 0.65em;
|
||||
transform: scale(0);
|
||||
transition: 120ms transform ease-in-out;
|
||||
transition: var(--animation-duration) transform ease-in-out;
|
||||
box-shadow: inset 1em 1em var(--SmartThemeCheckboxTickColor);
|
||||
transform-origin: bottom left;
|
||||
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
||||
@@ -4181,6 +4183,13 @@ input[type='checkbox'].del_checkbox {
|
||||
background-repeat: no-repeat !important;
|
||||
box-shadow: inset 0 0 2px var(--black50a) !important;
|
||||
cursor: ew-resize !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Setting a z-index will allow scrollbar to display properly in Firefox,
|
||||
* while constraining to open drawers fixes a single frame linger in Chrome.
|
||||
*/
|
||||
.drawer-content.openDrawer .neo-range-slider {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@@ -4345,7 +4354,7 @@ input[type="range"]::-webkit-slider-thumb {
|
||||
border-radius: 100%;
|
||||
box-shadow: 0 0 3px black;
|
||||
*/
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.topRightInset {
|
||||
@@ -4365,7 +4374,7 @@ input[type="range"]::-webkit-slider-thumb {
|
||||
font-weight: 400;
|
||||
text-decoration: none;
|
||||
border-bottom: 2px dashed red;
|
||||
transition: 0.3s;
|
||||
transition: var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.whitespacenowrap {
|
||||
@@ -4398,7 +4407,7 @@ input[type="range"]::-webkit-slider-thumb {
|
||||
gap: 4px;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-end;
|
||||
transition: all 200ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
overflow-x: hidden;
|
||||
padding: 1px;
|
||||
}
|
||||
@@ -4410,7 +4419,7 @@ input[type="range"]::-webkit-slider-thumb {
|
||||
.mes_button,
|
||||
.extraMesButtons>div {
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
transition: opacity var(--animation-duration-2x) ease-in-out;
|
||||
filter: drop-shadow(0px 0px 2px black);
|
||||
opacity: 0.3;
|
||||
padding: 1px 3px;
|
||||
@@ -4441,7 +4450,7 @@ input[type="range"]::-webkit-slider-thumb {
|
||||
cursor: pointer;
|
||||
padding-bottom: 5px;
|
||||
filter: drop-shadow(0px 0px 2px black);
|
||||
transition: 0.3s ease-in-out;
|
||||
transition: var(--animation-duration-2x) ease-in-out;
|
||||
}
|
||||
|
||||
.mes_reasoning_actions {
|
||||
@@ -4776,7 +4785,7 @@ body .ui-slider-handle {
|
||||
text-align: center;
|
||||
margin-left: 0;
|
||||
opacity: 1 !important;
|
||||
transition: filter 200ms;
|
||||
transition: filter var(--animation-duration-2x);
|
||||
filter: brightness(1.2);
|
||||
}
|
||||
|
||||
@@ -4834,7 +4843,7 @@ body .ui-widget-content li {
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
opacity: 0.5;
|
||||
transition: opacity 200ms;
|
||||
transition: opacity var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
body .ui-widget-content li:hover {
|
||||
@@ -4996,34 +5005,6 @@ a:hover {
|
||||
/* Right nav panel and nav-toggle */
|
||||
/* ############################################################# */
|
||||
|
||||
#right-nav-panel {
|
||||
width: calc((100vw - var(--sheldWidth) - 2px) /2);
|
||||
width: calc((100dvw - var(--sheldWidth) - 2px) /2);
|
||||
max-height: calc(100vh - var(--topBarBlockSize));
|
||||
max-height: calc(100dvh - var(--topBarBlockSize));
|
||||
height: calc(100vh - var(--topBarBlockSize));
|
||||
height: calc(100dvh - var(--topBarBlockSize));
|
||||
position: fixed;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
right: 0;
|
||||
left: calc(100% - var(--sheldWidth) /2 + var(--sheldWidth) +1px);
|
||||
padding: 5px;
|
||||
margin-bottom: 5px;
|
||||
backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)));
|
||||
background-color: var(--SmartThemeBlurTintColor);
|
||||
-webkit-backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)));
|
||||
z-index: 3000;
|
||||
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
|
||||
box-shadow: none;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
flex-flow: column;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#nav-toggle {
|
||||
position: fixed;
|
||||
right: 13px;
|
||||
@@ -5047,7 +5028,7 @@ a:hover {
|
||||
display: none;
|
||||
position: relative;
|
||||
width: fit-content;
|
||||
transition: all 0.1s;
|
||||
transition: all var(--animation-duration);
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
@@ -5239,7 +5220,7 @@ body:not(.sd) .mes_img_swipes {
|
||||
border-radius: 10px;
|
||||
padding: 2px 5px;
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.standoutHeader.inline-drawer-header {
|
||||
@@ -5322,12 +5303,12 @@ body:has(#character_popup.open) #top-settings-holder:has(.drawer-content.openDra
|
||||
}
|
||||
|
||||
.drawer-icon.openIcon {
|
||||
transition: all 0.275s;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.drawer-icon.closedIcon {
|
||||
opacity: 0.3;
|
||||
transition: all 0.275s;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
.drawer-icon.closedIcon:hover {
|
||||
@@ -5390,7 +5371,7 @@ body:has(#character_popup.open) #top-settings-holder:has(.drawer-content.openDra
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
min-width: 450px;
|
||||
width: var(--sheldWidth);
|
||||
overflow-y: auto;
|
||||
overflow-y: hidden;
|
||||
max-height: calc(100vh - calc(var(--topBarBlockSize) + var(--bottomFormBlockSize)));
|
||||
max-height: calc(100dvh - calc(var(--topBarBlockSize) + var(--bottomFormBlockSize)));
|
||||
display: none;
|
||||
@@ -5399,9 +5380,30 @@ body:has(#character_popup.open) #top-settings-holder:has(.drawer-content.openDra
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: 0 auto;
|
||||
height: 0;
|
||||
backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)));
|
||||
-webkit-backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)));
|
||||
/* z-index: 1000 !important; */
|
||||
transition-property: height, display;
|
||||
transition-duration: var(--animation-duration-2x);
|
||||
transition-timing-function: ease-in-out;
|
||||
transition-behavior: allow-discrete;
|
||||
}
|
||||
|
||||
#movingDivs>.drawer-content {
|
||||
height: unset;
|
||||
}
|
||||
|
||||
.drawer-content.openDrawer {
|
||||
display: block;
|
||||
height: auto;
|
||||
height: calc-size(auto, size);
|
||||
overflow-y: auto;
|
||||
animation: hide-scroll var(--animation-duration-2x) backwards;
|
||||
|
||||
@starting-style {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
body.movingUI .inline-drawer-maximize {
|
||||
@@ -5428,8 +5430,7 @@ body:not(.movingUI) .drawer-content.maximized {
|
||||
.fillLeft {
|
||||
width: calc((100vw - var(--sheldWidth) - 2px) /2);
|
||||
width: calc((100dvw - var(--sheldWidth) - 2px) /2);
|
||||
height: calc(100vh - var(--topBarBlockSize));
|
||||
height: calc(100dvh - var(--topBarBlockSize));
|
||||
height: 0;
|
||||
max-height: calc(100vh - var(--topBarBlockSize));
|
||||
max-height: calc(100dvh - var(--topBarBlockSize));
|
||||
position: fixed;
|
||||
@@ -5443,6 +5444,66 @@ body:not(.movingUI) .drawer-content.maximized {
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
}
|
||||
|
||||
.fillLeft.openDrawer {
|
||||
overflow-y: hidden;
|
||||
height: calc(100vh - var(--topBarBlockSize));
|
||||
height: calc(100dvh - var(--topBarBlockSize));
|
||||
height: calc-size((100dvh - var(--topBarBlockSize)), size);
|
||||
|
||||
@starting-style {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.fillRight {
|
||||
width: calc((100vw - var(--sheldWidth) - 2px) /2);
|
||||
width: calc((100dvw - var(--sheldWidth) - 2px) /2);
|
||||
max-height: calc(100vh - var(--topBarBlockSize));
|
||||
max-height: calc(100dvh - var(--topBarBlockSize));
|
||||
height: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
right: 0;
|
||||
left: calc(100% - var(--sheldWidth) /2 + var(--sheldWidth) +1px);
|
||||
padding: 5px;
|
||||
margin-bottom: 5px;
|
||||
backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)));
|
||||
background-color: var(--SmartThemeBlurTintColor);
|
||||
-webkit-backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)));
|
||||
z-index: 3000;
|
||||
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
|
||||
box-shadow: none;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
flex-flow: column;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
.fillRight.openDrawer {
|
||||
display: flex;
|
||||
height: calc(100vh - var(--topBarBlockSize));
|
||||
height: calc(100dvh - var(--topBarBlockSize));
|
||||
height: calc-size((100dvh - var(--topBarBlockSize)), size);
|
||||
|
||||
@starting-style {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
.fillRight #rm_print_characters_block {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.fillRight.openDrawer #rm_print_characters_block {
|
||||
overflow-y: auto;
|
||||
animation: hide-scroll var(--animation-duration-2x) backwards;
|
||||
}
|
||||
*/
|
||||
|
||||
.scrollableInner {
|
||||
overflow-x: hidden;
|
||||
height: calc(100% - 30px);
|
||||
@@ -5709,7 +5770,7 @@ body:not(.movingUI) .drawer-content.maximized {
|
||||
aspect-ratio: 1 / 1;
|
||||
font-size: 20px;
|
||||
opacity: 0.5;
|
||||
transition: all 250ms;
|
||||
transition: all var(--animation-duration-2x);
|
||||
}
|
||||
|
||||
/* #groupMemberListPopout,
|
||||
@@ -5796,7 +5857,7 @@ body:not(.movingUI) .drawer-content.maximized {
|
||||
color: var(--SmartThemeBodyColor);
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
border-radius: 5px;
|
||||
transition: opacity 0.2s;
|
||||
transition: opacity var(--animation-duration-2x);
|
||||
opacity: 0.8;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -5988,7 +6049,7 @@ body:not(.movingUI) .drawer-content.maximized {
|
||||
margin: 7px;
|
||||
width: calc(100% - 7px);
|
||||
box-sizing: border-box;
|
||||
transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, border 0.2s ease-in-out;
|
||||
transition: transform var(--animation-duration-2x) ease-in-out, background-color var(--animation-duration-2x) ease-in-out, border var(--animation-duration-2x) ease-in-out;
|
||||
}
|
||||
|
||||
.model-card .details-container {
|
||||
@@ -6000,7 +6061,7 @@ body:not(.movingUI) .drawer-content.maximized {
|
||||
transform: scale(1.01);
|
||||
background-color: #444;
|
||||
/* Smooth transition */
|
||||
transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
||||
transition: transform var(--animation-duration-2x) ease-in-out, background-color var(--animation-duration-2x) ease-in-out;
|
||||
}
|
||||
|
||||
.model-card.selected {
|
||||
|
||||
Reference in New Issue
Block a user