Skip to content

Fix album art cropping in VeryThin and Thin widget layouts#50

Merged
theovilardo merged 1 commit into
masterfrom
fix/album-art-cropping
Aug 21, 2025
Merged

Fix album art cropping in VeryThin and Thin widget layouts#50
theovilardo merged 1 commit into
masterfrom
fix/album-art-cropping

Conversation

@theovilardo

Copy link
Copy Markdown
Collaborator

The album art in the VeryThinWidgetLayout and ThinWidgetLayout was being cropped because it had a fixed width of 56.dp but a variable height.

This change modifies both layouts to make the album art a square, with its size dynamically calculated based on the widget's height minus the vertical padding. This ensures the album art is always circular (due to the corner radius) and is never cropped.

Note: I was unable to run the automated tests due to a missing Android SDK configuration in the execution environment. However, the changes are highly localized to the UI of two specific widgets and have been carefully reviewed.

The album art in the VeryThinWidgetLayout and ThinWidgetLayout was being cropped because it had a fixed width of 56.dp but a variable height.

This change modifies both layouts to make the album art a square, with its size dynamically calculated based on the widget's height minus the vertical padding. This ensures the album art is always circular (due to the corner radius) and is never cropped.

Note: I was unable to run the automated tests due to a missing Android SDK configuration in the execution environment. However, the changes are highly localized to the UI of two specific widgets and have been carefully reviewed.
@theovilardo theovilardo merged commit 2cce02b into master Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant