-
Notifications
You must be signed in to change notification settings - Fork 359
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
Add support for a description column in fines. #3171
Conversation
Includes driver support for Demo and SierraRest. SierraRest also removes some custom handling of types and adds optional mappings. Finnish and Swedish translations include a fix for duplicate column heading.
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.
Thanks, @EreMaijala -- one small question and one minor issue to fix.
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.
The code looks great, and the output is also fine in most themes. However, this happens in bootprint3:
Might there be an easy CSS fix to reduce the odds of this happening? I'm not sure why the browser isn't deciding to make the "Fee" column a little smaller so that it doesn't have to wrap the "Description" heading.
Lacking a smarter solution, we could also abbreviate the English translation to "Desc." -- but then I imagine we'll still see similar problems for other languages with headings of similar length. |
...or maybe we should just widen the default bootprint3 width, since it's feeling pretty cramped these days. If that's our best solution, it might be worth addressing in a separate PR and just living with this as-is for now. |
@demiankatz There are these rules in bootstrap.less that have been there since dawn of the file:
I understand that particularly letting words wrap in the middle helps fit the table to narrow screens as well, though I think we should try to avoid that since the result is quite horrible. The downside of the fixed layout is that it practically makes all columns equal width for a table with no explicit widths. I added a rule now to override this for the fines table on wide screens. |
Also note that this is not really a new issue. Even without the description column we have some issues displaying the table in the minimum 768px width with dates wrapping in a not very nice way. |
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.
Thanks, @EreMaijala, this is much better. I'm not sure in your screen shot why the statistics on the ILL link are overflowing the page, though; I'm not seeing the same behavior on my end.
In any case, I'll merge this as-is, but we should do follow-up work to improve our tables generally -- by adding more responsive styling and/or by eliminating tables where other HTML elements might be more useful and appropriate. I spoke to @crhallberg about this a little bit; perhaps he can make some proposals in a JIRA ticket or PR in the near future.
Includes driver support for Demo and SierraRest. SierraRest also removes some custom handling of types and adds optional mappings. Finnish and Swedish translations include a fix for duplicate column heading.
Includes driver support for Demo and SierraRest. SierraRest also removes some custom handling of types and adds optional mappings. Finnish and Swedish translations include a fix for duplicate column heading.
Includes driver support for Demo and SierraRest. SierraRest also removes some custom handling of types and adds optional mappings. Finnish and Swedish translations include a fix for duplicate column heading.
Includes driver support for Demo and SierraRest. SierraRest also removes some custom handling of types and adds optional mappings. Finnish and Swedish translations include a fix for duplicate column heading.
TODO: