-
Notifications
You must be signed in to change notification settings - Fork 4
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
PP-443: Restrict cover widths #225
Conversation
This sets a maximum width for covers in lanes and book detail pages. Affects: https://ebce-lyrasis.atlassian.net/browse/PP-443
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment on a minor issue
|
||
<androidx.cardview.widget.CardView | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there's just a CardView, do we need a parent view? If so, maybe we should use a FrameLayout instead then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I freely admit I have no idea. I've not looked at any of the UI code for years, and even then, I wasn't the person who wrote it.
What arrangement of layouts were you thinking of?
<FrameLayout>
<CardView>
<ImageView/>
</CardView>
</FrameLayout>
Like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the parent view completely seems to work fine!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! But for the record, I was thinking about this (like you said), if we were not to remove the parent view:
<FrameLayout>
<CardView>
<ImageView/>
</CardView>
</FrameLayout>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment on a minor issue
What's this do?
This sets maximum widths for covers so that very large covers can no longer break the UI.
Before:
After:
Why are we doing this? (w/ JIRA link if applicable)
https://ebce-lyrasis.atlassian.net/browse/PP-443
How should this be tested? / Do these changes have associated tests?
Try Minotaur. The book is on the front page now.
Dependencies for merging? Releasing to production?
None.
Have you updated the changelog?
Yes.
Has the application documentation been updated for these changes?
N/A
Did someone actually run this code to verify it works?
@io7m Took the screenshots above!