[Bug 44001] New: System preference tables - column widths noticeably more inconsistent in main
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 Bug ID: 44001 Summary: System preference tables - column widths noticeably more inconsistent in main Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: System Administration Assignee: koha-bugs@lists.koha-community.org Reporter: david@davidnind.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com Target Milestone: --- I recently noticed that the column widths in main for system preference tables are now noticeably more inconsistent: - sometimes the columns are very wide - at other times they are every narrow Example: Acquisitions system preferences To reproduce: 1. On current main go to Administration > System preferences. 2. Look at the column widths (Preferences and Value columns) for the acquisition system preferences (on a "normal" window size). 3. Compare this with a 26.05 instance, for example using a demo instance from https://koha-community.org/demo/ 4. Notice that the column widths are noticeably different. 5. Compare some other sections. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 210606 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210606&action=edit Screenshot showing an example before Bug 38185 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 210607 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210607&action=edit Screenshot showing an example after Bug 38185 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |38185 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38185 [Bug 38185] DT - replace dom with layout -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 --- Comment #3 from David Nind <david@davidnind.com> --- Thanks Owen for identifying and adding the screenshots! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |jonathan.druart@gmail.com |ity.org | Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 --- Comment #4 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 210826 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210826&action=edit Bug 44001: (bug 38185 follow-up) Fix inconsistent DataTables column widths Since bug 38185 tables are built using the 'layout' option, which wraps the table in div.dt-layout-row.dt-layout-table > div.dt-layout-cell. DataTables' CSS rule "div.dt-container div.dt-layout-table > div { display: block }" is less specific than "div.dt-container div.dt-layout-row div.dt-layout-cell { display: flex }", so the cell holding the table is a flex container. The temporary table used by autoWidth to calculate the column widths is then shrunk to its content, and the resulting column widths depend on the length of the longest strings, leading to very wide or very narrow columns. This patch forces the table cell to display as block, restoring the previous behaviour. Test plan: 1. Go to Administration > System preferences > Acquisitions 2. Notice that the widths of the Preference and Value columns are inconsistent between the different sections 3. Apply this patch and rebuild the CSS (yarn css:build) 4. Reload the page => The column widths are consistent again, as in 26.05 5. Check some other tables (e.g. Administration > Libraries) and confirm they still display correctly Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_26_11_candidate -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 Bug 44001 depends on bug 38185, which changed state. Bug 38185 Summary: DT - replace dom with layout https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38185 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #210826|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 --- Comment #5 from David Nind <david@davidnind.com> --- Created attachment 211124 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211124&action=edit Bug 44001: (bug 38185 follow-up) Fix inconsistent DataTables column widths Since bug 38185 tables are built using the 'layout' option, which wraps the table in div.dt-layout-row.dt-layout-table > div.dt-layout-cell. DataTables' CSS rule "div.dt-container div.dt-layout-table > div { display: block }" is less specific than "div.dt-container div.dt-layout-row div.dt-layout-cell { display: flex }", so the cell holding the table is a flex container. The temporary table used by autoWidth to calculate the column widths is then shrunk to its content, and the resulting column widths depend on the length of the longest strings, leading to very wide or very narrow columns. This patch forces the table cell to display as block, restoring the previous behaviour. Test plan: 1. Go to Administration > System preferences > Acquisitions 2. Notice that the widths of the Preference and Value columns are inconsistent between the different sections 3. Apply this patch and rebuild the CSS (yarn css:build) 4. Reload the page => The column widths are consistent again, as in 26.05 5. Check some other tables (e.g. Administration > Libraries) and confirm they still display correctly Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This improves the release notes| |consistency of the column | |widths for system | |preference table columns | |(preference and value | |columns). Sometimes the | |column widths were very | |wide and at other times | |they were very narrow. | |(While not perfectly | |aligned, they are more | |similar to Koha 26.05.) | | | |(This is a follow-up to Bug | |38185 - DT - replace dom | |with layout, added to Koha | |26.11). --- Comment #6 from David Nind <david@davidnind.com> --- Thanks Jonathan! This improves things a lot. David -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44001 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |lucas@bywatersolutions.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org