mirror of
https://lavaforge.org/spotizerr/spotizerr.git
synced 2025-12-24 02:39:14 -05:00
correct css again
This commit is contained in:
@@ -535,7 +535,7 @@ function showEmptyState(show: boolean) {
|
||||
async function unwatchItem(itemId: string, itemType: 'artist' | 'playlist', buttonElement: HTMLButtonElement, cardElement: HTMLElement) {
|
||||
const originalButtonContent = buttonElement.innerHTML;
|
||||
buttonElement.disabled = true;
|
||||
buttonElement.innerHTML = '<img src="/static/images/loader-small.svg" alt="Unwatching...">'; // Assuming a small loader icon
|
||||
buttonElement.innerHTML = '<img src="/static/images/refresh.svg" class="spin-counter-clockwise" alt="Unwatching...">'; // Assuming a small loader icon
|
||||
|
||||
const endpoint = `/api/${itemType}/watch/${itemId}`;
|
||||
|
||||
|
||||
@@ -343,4 +343,17 @@ body {
|
||||
.notification-toast.hide {
|
||||
opacity: 0;
|
||||
transform: translateY(100%); /* Slide down for exit, or could keep translateX if preferred */
|
||||
}
|
||||
|
||||
@keyframes spin-counter-clockwise {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(-360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.spin-counter-clockwise {
|
||||
animation: spin-counter-clockwise 1s linear infinite;
|
||||
}
|
||||
Reference in New Issue
Block a user