fix: restore grid layout in PanelSearch broken by wrapper div#6977
fix: restore grid layout in PanelSearch broken by wrapper div#6977
Conversation
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.
Once credits are available, reopen this pull request to trigger a review.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Docker builds report
|
a870085 to
9bcb01c
Compare
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
|
|
Good, thanks for the context @kyle-ssg, let me dig a bit deeper. |
The wrapper div added in 362a9f8 to scope loading opacity to list items (not the header) broke Bootstrap grid layouts because col-* items were no longer direct children of the row container. Fix with CSS: make the wrapper div a flex container so it inherits the grid behaviour from the parent row. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9bcb01c to
6ee81da
Compare
The wrapper div added in 362a9f8 to scope loading opacity to list items broke Bootstrap grid layouts because col-* items were no longer direct children of the row container. Move listClassName from the outer search-list div to the items wrapper so that the row class and opacity live on the same element. This fixes the grid layout on Organisations, Projects, and Import pages while preserving the scoped loading opacity. Also extracts the nested ternary into a renderListContent helper for readability and to satisfy the linter. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thanks latest looks good @talissoncosta |

Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Fixes a regression introduced in 362a9f8 (#6927).
The wrapper
<div>added aroundrenderContainer(filteredItems)to scope loading opacity to list items (not the header) broke Bootstrap grid layouts becausecol-*items were no longer direct children of therowcontainer, causing the Organisations page, Projects page, and Import page to display cards vertically instead of in a horizontal grid.Fix: Move
listClassNamefrom the outersearch-listdiv to the items wrapper div, so that therowclass and opacity live on the same element. This preserves Kyle's intended opacity scoping while restoring correct Bootstrap grid behaviour.Note: The nested ternary in the render block was extracted into a
renderListContenthelper. This was required because touching the file triggered the pre-existingno-nested-ternarylint error, and we opted to fix it properly rather than addingeslint-disablecomments.How did you test this code?