Skip to content

Commit

Permalink
fix: wrap collapsible lists in a div (#1038)
Browse files Browse the repository at this point in the history
fix alignment of show more/less button when collapsible list is in a
grid

#### Before

<img width="612" alt="Screenshot 2024-08-19 at 12 11 04 PM"
src="https://github.com/user-attachments/assets/b533e89e-6261-4dce-8921-40843ad7dcb6">

#### After

<img width="643" alt="Screenshot 2024-08-19 at 12 11 29 PM"
src="https://github.com/user-attachments/assets/fe2bf70d-f83d-46e3-843d-8da557c8d27c">
  • Loading branch information
kne42 authored Aug 20, 2024
1 parent 8ba1105 commit 4df83f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function CollapsibleList({
collapsible && collapsed ? collapseAfter - 1 : (entries ?? []).length - 1

return entries ? (
<>
<div>
<ul
className={cns(
'flex',
Expand Down Expand Up @@ -100,7 +100,7 @@ export function CollapsibleList({
</button>
</div>
)}
</>
</div>
) : (
<p className="text-sds-body-xxs leading-sds-body-xxs text-sds-gray-600">
{t('notSubmitted')}
Expand Down

0 comments on commit 4df83f0

Please sign in to comment.