Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement My media (small) home section #4011

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

nielsvanvelzen
Copy link
Member

Changes

  • Add new UserViewCardPresenter that can show 2 sizes of user view cards

Screenshots

9330000400

Comparison with previous size (first row)

90900003ff

Issues

Fixes #1499
Fixes #2093
Fixes #2721
Fixes #3176
Fixes #3664
Fixes #3749

@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Sep 21, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.0 milestone Sep 21, 2024
@nielsvanvelzen
Copy link
Member Author

Note that this still displays different from jellyfin-web. It's really just the same card but smaller, instead of those awful buttons in a grid.


// Set size
if (small) {
cardView.setMainImageDimensions(133, 75)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.

// Set size
if (small) {
cardView.setMainImageDimensions(133, 75)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
if (small) {
cardView.setMainImageDimensions(133, 75)
} else {
cardView.setMainImageDimensions(224, 126)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
if (small) {
cardView.setMainImageDimensions(133, 75)
} else {
cardView.setMainImageDimensions(224, 126)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
@nielsvanvelzen nielsvanvelzen merged commit 579186d into jellyfin:master Sep 21, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the my-media-small branch September 21, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants