mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-31 09:45:24 +00:00
MediaMini: handle empty media content with active player for rounded background
This commit is contained in:
@@ -120,6 +120,10 @@ Item {
|
||||
if (!hasActivePlayer) {
|
||||
return maxWidth
|
||||
}
|
||||
// If there's an active player but no contenct, use a minimum height for rounded background
|
||||
if (hasActivePlayer && fullTitleMetrics.contentWidth === 0) {
|
||||
return Style.capsuleHeight + Style.marginS
|
||||
}
|
||||
// Use content width but don't exceed user-set maximum width
|
||||
return Math.min(calculateContentWidth(), maxWidth)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user