v3.1.1: Fix mobile tabs not initializing on mobile devices

This commit is contained in:
Spicy_Marinara
2026-01-08 00:12:19 +01:00
parent a3063aff4f
commit be05051a39
4 changed files with 13 additions and 52 deletions
+2 -6
View File
@@ -7,13 +7,9 @@ An immersive RPG extension for browsers that tracks character stats, scene infor
## 🆕 What's New ## 🆕 What's New
### v3.1.0 ### v3.1.1
- Added toastr notification when the model returns an incorrect tracker format that cannot be parsed. - Mobile UI fixes.
- Added guidance in settings about which models work best with the extension (I'm tired of people asking me why this doesn't work with their Q4 MythoMax 13B).
- Fixed auto-update after messages to work with External API generation mode.
- Fixed mobile UI.
- Fixed a minor bug with the thought bubble icon appearing in the wrong place on mobiles.
### v3.0.1 ### v3.0.1
+3 -1
View File
@@ -874,9 +874,11 @@ async function initUI() {
// Setup mobile toggle button // Setup mobile toggle button
setupMobileToggle(); setupMobileToggle();
// Setup desktop tabs (only on desktop viewport) // Setup tabs based on viewport
if (window.innerWidth > 1000) { if (window.innerWidth > 1000) {
setupDesktopTabs(); setupDesktopTabs();
} else {
setupMobileTabs();
} }
// Setup collapse/expand toggle button // Setup collapse/expand toggle button
+1 -1
View File
@@ -48,7 +48,7 @@
</div> </div>
<div style="margin-top: 10px; text-align: center; opacity: 0.6; font-size: 0.85em;"> <div style="margin-top: 10px; text-align: center; opacity: 0.6; font-size: 0.85em;">
v3.1.0 v3.1.1
</div> </div>
</div> </div>
</div> </div>
+7 -44
View File
@@ -1616,43 +1616,22 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
} }
.rpg-location-text { .rpg-location-text {
font-size: clamp(0.625rem, 0.6vw, 0.75rem);
font-weight: bold; font-weight: bold;
color: var(--rpg-text); color: var(--rpg-text);
text-align: center; text-align: center;
line-height: 1.2; line-height: 1.2;
padding: 0.25em 0.5em; padding: 0;
margin: 0; margin: 0;
word-wrap: break-word; word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
hyphens: auto; hyphens: auto;
flex: 1 1 auto; flex: 1 1 auto;
min-height: 0; min-height: 0;
max-height: 4em; overflow: hidden;
width: 100%; display: -webkit-box;
display: block; -webkit-line-clamp: 2;
overflow-y: auto; -webkit-box-orient: vertical;
overflow-x: hidden;
/* Dynamic text scaling based on content length */
font-size: clamp(0.45rem, calc(0.75rem - 0.005rem * var(--char-count, 0)), 0.75rem);
}
/* Custom scrollbar for location text */
.rpg-location-text::-webkit-scrollbar {
width: 4px;
}
.rpg-location-text::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
border-radius: 2px;
}
.rpg-location-text::-webkit-scrollbar-thumb {
background: var(--rpg-border);
border-radius: 2px;
}
.rpg-location-text::-webkit-scrollbar-thumb:hover {
background: var(--rpg-highlight);
} }
/* Row 3: Recent Events */ /* Row 3: Recent Events */
@@ -5143,13 +5122,9 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
left: auto !important; left: auto !important;
/* Mobile panel sizing */ /* Mobile panel sizing */
width: 85vw !important;
width: 85dvw !important; width: 85dvw !important;
max-width: 400px !important; max-width: 400px !important;
height: calc(100vh - var(--topBarBlockSize)) !important;
height: calc(100dvh - var(--topBarBlockSize)) !important; height: calc(100dvh - var(--topBarBlockSize)) !important;
max-height: calc(100vh - var(--topBarBlockSize)) !important;
max-height: calc(100dvh - var(--topBarBlockSize)) !important;
/* Hidden by default - completely removed from layout */ /* Hidden by default - completely removed from layout */
display: none !important; display: none !important;
@@ -5168,18 +5143,12 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
/* Allow collapse button to show outside panel */ /* Allow collapse button to show outside panel */
.rpg-game-container { .rpg-game-container {
overflow: visible !important; overflow: visible !important;
height: 100% !important;
max-height: 100% !important;
box-sizing: border-box !important;
padding: 0.75em !important;
} }
/* But keep content scrollable */ /* But keep content scrollable */
#rpg-panel-content { #rpg-panel-content {
overflow-y: auto !important; overflow-y: auto !important;
overflow-x: hidden !important; overflow-x: hidden !important;
max-height: 100% !important;
height: 100% !important;
} }
/* Show panel when opened with slide-in animation */ /* Show panel when opened with slide-in animation */
@@ -5348,12 +5317,10 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
max-height: 100%;
min-height: 0; min-height: 0;
margin: -12px -12px 16px -12px; margin: -12px -12px 16px -12px;
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
box-sizing: border-box;
} }
/* Tab container at top of panel */ /* Tab container at top of panel */
@@ -5534,11 +5501,7 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
} }
.rpg-location-text { .rpg-location-text {
/* Dynamic text scaling based on content length - mobile override */ font-size: min(2.8vw, 0.875rem) !important;
font-size: clamp(0.45rem, calc(0.875rem - 0.005rem * var(--char-count, 0)), 0.875rem) !important;
max-height: 4.5em !important;
overflow-y: auto !important;
overflow-x: hidden !important;
} }
.rpg-map-marker { .rpg-map-marker {