Skip to content

Commit

Permalink
Merge pull request #3669 from plone/petschki-search-numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki authored Nov 4, 2022
2 parents c3b85ef + 266aa8c commit a382eaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Products/CMFPlone/browser/templates/search.pt
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@
use_view_action python:context.portal_registry.get('plone.types_use_view_action_in_listings', []);
allowAnonymousViewAbout python:context.portal_registry['plone.allow_anon_views_about'];
show_about python:not isAnon or allowAnonymousViewAbout;
image_scale portal/@@image_scale">
<ol class="searchResults list-group list-group-numbered" start="${python:request.get('b_start', 0) + 1}">
image_scale portal/@@image_scale;
count_offset python:request.get('b_start', 0)">
<ol class="searchResults list-group list-group-numbered" start="${python:count_offset + 1}" style="--list-start: ${count_offset}; counter-reset: section var(--list-start, 0)">
<tal:results repeat="item batch">
<li tal:define="hasIcon item/getIcon" class="list-group-item list-group-item-action d-flex justify-content-between align-items-start fs-4">
<div class="ms-2 me-auto">
Expand Down
3 changes: 3 additions & 0 deletions news/3661.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bootstrap fix for numbering `.list-group-numbered`.
See suggestions here https://github.com/twbs/bootstrap/issues/37345
[petschki]

0 comments on commit a382eaf

Please sign in to comment.