fix(dashboard): sync widget data and fix refresh on chat load

- Update onMessageReceived to populate extensionSettings.infoBoxData and characterThoughts for dashboard widgets
- Update updateRPGData (separate mode) with same extensionSettings population
- Add refreshDashboard() calls after data updates in both generation paths
- Fix onCharacterChanged to populate extensionSettings from loaded chat data
- Fix refreshDashboard() to use correct property name (registry not widgetRegistry)
- Reduce mood and weather widget font sizes to fit in 1x1 layout

This fixes Scene tab widgets not updating when receiving messages or loading chats from welcome screen.
This commit is contained in:
Lucas 'Paperboy' Rose-Winters
2025-10-24 12:44:11 +11:00
parent 0d179d22fc
commit 63a02fd197
4 changed files with 58 additions and 16 deletions
+8 -5
View File
@@ -1553,26 +1553,29 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
}
.rpg-weather-icon {
font-size: 2rem;
font-size: 1rem;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
flex-shrink: 1;
flex-shrink: 0;
line-height: 1;
cursor: text;
}
.rpg-weather-forecast {
font-size: 0.65rem;
font-size: 0.45rem;
text-align: center;
margin: 0;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.013em;
opacity: 0.85;
line-height: 1.1;
line-height: 1;
word-wrap: break-word;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
flex-shrink: 0;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.rpg-weather-forecast.rpg-editable {