Revert "Merge pull request #16 from paperboygold/main"

This reverts commit c1b2520fa1, reversing
changes made to c6a1352aae.
This commit is contained in:
Spicy_Marinara
2025-10-22 00:52:43 +02:00
parent afd6f81580
commit 83576a9073
6 changed files with 21 additions and 405 deletions
+2 -11
View File
@@ -34,9 +34,6 @@ export function closeMobilePanelWithAnimation() {
$panel.removeClass('rpg-mobile-open').addClass('rpg-mobile-closing');
$mobileToggle.removeClass('active');
// Trigger event for other components (like refresh button)
$(document).trigger('rpg-panel-toggled', { isOpen: false });
// Wait for animation to complete before hiding
$panel.one('animationend', function() {
$panel.removeClass('rpg-mobile-closing');
@@ -130,9 +127,6 @@ export function setupCollapseToggle() {
const $overlay = $('<div class="rpg-mobile-overlay"></div>');
$('body').append($overlay);
// Trigger event for other components (like refresh button)
$(document).trigger('rpg-panel-toggled', { isOpen: true });
// Debug: Check state after animation should complete
setTimeout(() => {
console.log('[RPG Mobile] 500ms after opening:', {
@@ -273,13 +267,10 @@ export function applyPanelPosition() {
*/
export function updateGenerationModeUI() {
if (extensionSettings.generationMode === 'together') {
// In "together" mode, hide both update buttons
// In "together" mode, manual update button is hidden
$('#rpg-manual-update').hide();
$('#rpg-manual-update-mobile').hide();
} else {
// In "separate" mode, show both buttons
// (CSS media queries control which one is visible based on viewport)
// In "separate" mode, manual update button is visible
$('#rpg-manual-update').show();
$('#rpg-manual-update-mobile').show();
}
}