mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
MediaMini: prevent initial width jump to maxWidth when widget appears
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user