Bug 34060 - Broken formatting of resource_list items on mobile in OPAC
Summary: Broken formatting of resource_list items on mobile in OPAC
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-19 16:37 UTC by Jason Robb
Modified: 2023-06-20 14:15 UTC (History)
1 user (show)

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


Attachments
Tablet screenshot showing the odd formatting (318.45 KB, image/png)
2023-06-19 16:37 UTC, Jason Robb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Robb 2023-06-19 16:37:01 UTC
Created attachment 152476 [details]
Tablet screenshot showing the odd formatting

When browsing the OPAC on an iPad the last item in some "resource_list" ul elements go out of alignment vertically. We've only been able to replicate this on the tablet itself and it happens in both Safari and Chrome. The problem does not appear when resizing the browser window on a computer.

It seems to be a disagreement with the last-child:after rule that replaces the pipe character with nothing:

.resource_list li:last-child:after {content: '';}

As a workaround, replacing the pipe character with a space instead of nothing seems to avoid the problem:

.resource_list li:last-child:after {content: ' ';}