Skip to content

Commit

Permalink
increase gap from 8 -> 16 to match prod, allow overflow with horizont…
Browse files Browse the repository at this point in the history
…al scrollbar
  • Loading branch information
gtarpenning committed Dec 10, 2024
1 parent ed1a27d commit c5f3db4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,19 @@ export const ComparisonDefinitionSection: React.FC<{

return (
<Tailwind>
<div className="flex w-full items-center gap-4 px-16 pt-12">
<DraggableSection
useDragHandle
axis="xy"
state={props.state}
items={items}
onSetBaseline={onSetBaseline}
onRemoveItem={onRemoveItem}
onSortEnd={onSortEnd}
/>
<div className="flex w-full items-center gap-4 overflow-x-auto px-16">
<HorizontalBox>
<DraggableSection
useDragHandle
axis="x"
state={props.state}
items={items}
onSetBaseline={onSetBaseline}
onRemoveItem={onRemoveItem}
onSortEnd={onSortEnd}
useWindowAsScrollContainer
/>
</HorizontalBox>
<HorizontalBox>
<AddEvaluationButton state={props.state} />
</HorizontalBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type DraggableSectionProps = {
export const DraggableSection = SortableContainer(
({state, items, onSetBaseline, onRemoveItem}: DraggableSectionProps) => {
return (
<div className="flex flex-wrap items-center gap-8">
<div className="flex flex-wrap items-center gap-16">
{items.map((item, index) => (
<DraggableItem
key={`item-${item.value}`}
Expand Down

0 comments on commit c5f3db4

Please sign in to comment.