45009cd0e4
* Refactor loader.js to use action-loader system and move overlay management into action-loader module - Deprecate showLoader() and hideLoader() in favor of action-loader API - Implement legacy functions as thin wrappers around ActionLoaderHandle - Move overlay management (showOverlay, hideOverlay, isOverlayDisplayed) into action-loader.js - Move Popup-based loader implementation and preloader cleanup to action-loader - Add loader.isBlocking() method to check for active blocking overlays * Migrate from legacy loader functions to action-loader API throughout codebase - Replace showLoader()/hideLoader() imports with loader from action-loader.js - Update firstLoadInit() to use loader.show() with title, message, and ToastMode.STATIC - Pass initLoaderHandle to getSettings() for early hide during onboarding flow - Refactor renameGroupOrCharacterChat() to use loader.show() instead of boolean flag - Wrap handleDeleteChat() with loader.show() and proper error handling - Update BulkEditOver... * Update loader titles and remove redundant reload notification - Change bookmark loader title from "Bookmark" to "Chat History" for clarity - Remove loader notification before extensions reload (redundant with browser reload) * lint fix * Add splash screen support to action loader with custom overlay content - Add `overlayContent` option to ActionLoaderOptions for custom HTML in overlay - Implement splash screen styles with centered logo, spinner, and message - Update firstLoadInit() to use custom splash screen instead of static toast - Pass custom content through showOverlay() to replace default spinner - Adjust non-blocking loader warning to account for custom overlay content * Refactor loader overlay to use DOM elements instead of HTML strings - Add createDefaultLoaderOverlay() function to generate fresh loader overlay elements - Export createOverlay() method on loader utility API for external use - Change overlayContent parameter type from string-only to string|HTMLElement|null - Add getOverlayContent() helper to normalize custom content for Popup - Update firstLoadInit() to build splash screen using DOM manipulation instead of template literals - Add splash-logo class and * Use a true ellipsis * Adjust sizing for desktop * Even truer ellipsis * Add transition to splash screen and fix blur animation on hideOverlay (#5338) * Initial plan * Blur entire splash screen on hideOverlay, not just spinner Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com> Agent-Logs-Url: https://github.com/SillyTavern/SillyTavern/sessions/eee6c06d-7c9d-4363-bc8f-2647ed390368 * Add transition to splash-screen and fix transition detection Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com> Agent-Logs-Url: https://github.com/SillyTavern/SillyTavern/sessions/9368bc36-31a0-4a58-aebd-7b569696ff2e --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com> * Add translations to supported locales * Localize logo alt on welcome screen --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com> Co-authored-by: Claude <242468646+Claude@users.noreply.github.com>
89 lines
1.8 KiB
CSS
89 lines
1.8 KiB
CSS
#preloader {
|
|
position: fixed;
|
|
margin: 0;
|
|
padding: 0;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 999999;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
width: 100dvw;
|
|
height: 100dvh;
|
|
background-color: var(--SmartThemeBlurTintColor);
|
|
color: var(--SmartThemeBodyColor);
|
|
/*for some reason the full screen blur does not work on iOS*/
|
|
backdrop-filter: blur(30px);
|
|
opacity: 1;
|
|
}
|
|
|
|
#load-spinner {
|
|
--spinner-size: 2em;
|
|
transition: all var(--animation-duration-2x) ease-out;
|
|
opacity: 1;
|
|
top: calc(50% - var(--spinner-size) / 2);
|
|
left: calc(50% - var(--spinner-size) / 2);
|
|
position: absolute;
|
|
width: var(--spinner-size);
|
|
height: var(--spinner-size);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Action loader toast styles */
|
|
.action-loader-toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.action-loader-message {
|
|
flex: 1;
|
|
}
|
|
|
|
.action-loader-stop {
|
|
cursor: pointer;
|
|
font-size: 1.2em;
|
|
opacity: 0.8;
|
|
transition: opacity 0.15s ease, color 0.15s ease;
|
|
}
|
|
|
|
.action-loader-stop:hover {
|
|
opacity: 1;
|
|
color: color-mix(in srgb, currentColor 40%, #e74c3c 60%);
|
|
}
|
|
|
|
/* Splash screen styles for branded loading */
|
|
#loader.splash-screen {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4rem;
|
|
width: 100%;
|
|
height: 100%;
|
|
transition: all var(--animation-duration-2x) ease-out;
|
|
}
|
|
|
|
#loader.splash-screen #load-spinner {
|
|
position: static;
|
|
top: unset;
|
|
left: unset;
|
|
}
|
|
|
|
.splash-logo {
|
|
/* max original px, or 50% on mobile */
|
|
width: min(150px, 50%);
|
|
height: auto;
|
|
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
|
|
}
|
|
|
|
.splash-message {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 500;
|
|
opacity: 0.9;
|
|
letter-spacing: 0.02em;
|
|
}
|