Revert "feat: v2 widget dashboard system"
This commit is contained in:
@@ -509,13 +509,6 @@ export function setupMobileTabs() {
|
||||
const isMobile = window.innerWidth <= 1000;
|
||||
if (!isMobile) return;
|
||||
|
||||
// Check if Dashboard v2 is present - if so, skip mobile tabs (dashboard has its own tab system)
|
||||
const $dashboardContainer = $('#rpg-dashboard-container');
|
||||
if ($dashboardContainer.length > 0) {
|
||||
console.log('[RPG Mobile] Dashboard v2 detected - skipping old mobile tabs setup');
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if tabs already exist
|
||||
if ($('.rpg-mobile-tabs').length > 0) return;
|
||||
|
||||
|
||||
@@ -47,12 +47,6 @@ export class DiceModal {
|
||||
open() {
|
||||
if (this.isAnimating) return;
|
||||
|
||||
// CRITICAL: Move modal to document.body on first use to escape any container constraints
|
||||
if (this.modal.parentElement?.tagName !== 'BODY') {
|
||||
document.body.appendChild(this.modal);
|
||||
console.log('[DiceModal] Moved modal to document.body to ensure proper viewport positioning');
|
||||
}
|
||||
|
||||
// Apply theme
|
||||
const theme = extensionSettings.theme;
|
||||
this.modal.setAttribute('data-theme', theme);
|
||||
|
||||
@@ -108,19 +108,10 @@ function applyTrackerConfig() {
|
||||
tempConfig = null; // Clear temp config
|
||||
saveSettings();
|
||||
|
||||
// Re-render all trackers with new config (v1 system - backward compat)
|
||||
// Re-render all trackers with new config
|
||||
renderUserStats();
|
||||
renderInfoBox();
|
||||
renderThoughts();
|
||||
|
||||
// Notify dashboard system of config changes (v2 system - reactive integration)
|
||||
document.dispatchEvent(new CustomEvent('rpg:trackerConfigChanged', {
|
||||
detail: {
|
||||
config: extensionSettings.trackerConfig,
|
||||
source: 'trackerEditor'
|
||||
}
|
||||
}));
|
||||
console.log('[RPG Companion] Tracker config changed event dispatched');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user