MediaMini: prevent initial width jump to maxWidth when widget appears

This commit is contained in:
Sighthesia
2025-10-21 12:24:55 +08:00
parent 25ffb6c389
commit 593707baa4
+2 -1
View File
@@ -120,7 +120,8 @@ Item {
}
// Otherwise, adapt to content
if (!hasActivePlayer) {
return maxWidth
// Keep compact when no active player
return calculateContentWidth()
}
// Use content width but don't exceed user-set maximum width
return Math.min(calculateContentWidth(), maxWidth)