Bug 32577 - Transactions table overflows window-size
Summary: Transactions table overflows window-size
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 16:19 UTC by Matt Blenkinsop
Modified: 2024-07-04 14:37 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Image of issue (152.06 KB, image/png)
2023-01-06 16:19 UTC, Matt Blenkinsop
Details
Bug 32577: Transaction table overflows div (1.55 KB, patch)
2023-01-06 17:07 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 32577: Transaction table overflows div (1.23 KB, patch)
2023-01-16 17:55 UTC, Marius
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Blenkinsop 2023-01-06 16:19:51 UTC
Created attachment 145090 [details]
Image of issue

When a transaction is added to a patron's account the table overflows the div and is cut-off by the window size.
Comment 1 Matt Blenkinsop 2023-01-06 17:07:28 UTC
Created attachment 145091 [details] [review]
Bug 32577: Transaction table overflows div

The transations table on a patron's account overflows the window and needs to be scrollable

Test plan:
1) Add a fine to a patron
2) Navigate to that Patrons detail page and click on the accounting tab from the menu on the left
3) Observe that the table overflows the window as per the image attached to this bug
4) Apply patch
5) Repeat step 2
6) The table should now have a scrollbar and be contained within its div rather than overflowing
Comment 2 Matt Blenkinsop 2023-01-06 17:08:45 UTC
There will probably be other examples of this - maybe something needs to be done to the KohaTable wrapper to fix this universally...? I've opted for an overflow scroll here, feedback on other/preferred options is welcome
Comment 3 Marius 2023-01-16 17:55:27 UTC
Created attachment 145335 [details] [review]
Bug 32577: Transaction table overflows div

The package works well, but we could also put it on the "make a payment" page.
Signed-off-by: Marius Mandrescu <marius.mandrescu@inLibro.com>
Comment 4 Owen Leonard 2023-01-17 16:50:08 UTC
This problem is true of any table that's wide enough to extend off the page, so any solution we do should be global if possible.

I've been thinking about a solution that would add "display:table; width:100%" to .tab-content and .page-section. This would make those containers expand to the width of the table.

I'm not a fan of having "overflow:scroll" on the table wrapper because users with a basic mouse will have to scroll all the way down to the bottom of the table to reach the scrollbar. It can also be difficult to tell at first glance that the table is overflowing at all.

I think it's better that the page itself have a horizontal scrollbar if necessary.
Comment 5 Katrin Fischer 2023-04-23 12:22:39 UTC
I think a horizontal scroll bar was also highlighted as an accessibility issue (bug 33516), so we should avoid it.

How can we proceed here? Owen, do you have a patch with your idea for comparison?