changes to mobile styling in modal view, complete reword of backend worker system

This commit is contained in:
Bryan Van Deusen
2026-01-20 13:14:13 -05:00
parent 96f72718bd
commit cb3897c0b0
22 changed files with 2432 additions and 487 deletions
+10 -3
View File
@@ -53,7 +53,9 @@ document.addEventListener('DOMContentLoaded', () => {
archive: '🗜️',
character: '👤',
series: '📺',
rating: '⚠️'
rating: '⚠️',
source: '🌐',
post: '📌'
};
return icons[kind] || '#';
}
@@ -303,12 +305,17 @@ document.addEventListener('DOMContentLoaded', () => {
modal.classList.add('active');
updateImage(index);
history.replaceState({ modalIndex: index }, '', window.location.href);
// Focus the tag input after modal opens
if (tagInput) {
// Focus the tag input after modal opens (desktop only - avoids keyboard popup on mobile)
if (tagInput && !isTouchDevice()) {
setTimeout(() => tagInput.focus(), 100);
}
}
// Detect touch devices to avoid auto-focus keyboard popup
function isTouchDevice() {
return ('ontouchstart' in window) || (navigator.maxTouchPoints > 0);
}
function closeModal() {
modal.classList.remove('active');
modalImageWrapper.innerHTML = '';
+3 -1
View File
@@ -286,7 +286,9 @@
archive: '🗜️',
character: '👤',
series: '📺',
rating: '⚠️'
rating: '⚠️',
source: '🌐',
post: '📌'
};
const icon = icons[tag.kind];