Skip to content

Commit

Permalink
feat: Use column layout in items palette
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-kot committed Nov 25, 2024
1 parent 4a5fb2a commit 3449e46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/items-palette/internal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useRef, useState } from "react";

import { getIsRtl } from "@cloudscape-design/component-toolkit/internal";
import SpaceBetween from "@cloudscape-design/components/space-between";
import ColumnLayout from "@cloudscape-design/components/column-layout";

import { getDataAttributes } from "../internal/base-component/get-data-attributes";
import { InternalBaseComponentProps } from "../internal/base-component/use-base-component";
Expand Down Expand Up @@ -72,7 +72,7 @@ export function InternalItemsPalette<D>({
return (
<div ref={__internalRootRef} {...getDataAttributes(rest)}>
<div ref={paletteRef} className={styles.root}>
<SpaceBetween size="l">
<ColumnLayout columns={3}>
{items.map((item) => (
<ItemContainer
ref={(elem) => {
Expand Down Expand Up @@ -100,7 +100,7 @@ export function InternalItemsPalette<D>({
{(hasDropTarget) => renderItem(item, { showPreview: hasDropTarget })}
</ItemContainer>
))}
</SpaceBetween>
</ColumnLayout>
</div>

<LiveRegion>{announcement}</LiveRegion>
Expand Down

0 comments on commit 3449e46

Please sign in to comment.