Skip to content

Commit

Permalink
Moving buttons to consistent places
Browse files Browse the repository at this point in the history
  • Loading branch information
tombch committed Nov 12, 2024
1 parent c5d1e07 commit f4c0368
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions lib/components/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ function Filter(props: FilterProps) {
</Stack>
<Stack direction="horizontal" gap={1}>
<div className="me-auto"></div>
<Button size="sm" variant="dark" onClick={handleApply}>
Apply
</Button>
<Button
size="sm"
variant="dark"
onClick={() => props.setEditMode(false)}
>
Cancel
</Button>
<Button size="sm" onClick={handleApply}>
Apply
</Button>
</Stack>
</Stack>
);
Expand Down
19 changes: 9 additions & 10 deletions lib/components/FilterPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,15 @@ function FilterPanel(props: FilterPanelProps) {
<Card className="h-50">
<Card.Header>
<span>Filters</span>
<Stack direction="horizontal" gap={1} className="float-end">
<Button
size="sm"
variant="dark"
title="Add Filter"
onClick={() => handleFilterAdd(props.filterList.length)}
>
<MdCreate />
</Button>
</Stack>
<Button
className="float-end"
size="sm"
variant="dark"
title="Add Filter"
onClick={() => handleFilterAdd(props.filterList.length)}
>
<MdCreate />
</Button>
</Card.Header>
<Container fluid className="overflow-y-scroll p-2 h-100">
{editMode ? (
Expand Down
6 changes: 3 additions & 3 deletions lib/components/Transforms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ function Transforms(props: TransformsProps) {
/>
<Stack direction="horizontal" gap={1}>
<div className="me-auto"></div>
<Button size="sm" variant="dark" onClick={handleApply}>
Apply
</Button>
<Button
size="sm"
variant="dark"
onClick={() => props.setEditMode(false)}
>
Cancel
</Button>
<Button size="sm" onClick={handleApply}>
Apply
</Button>
</Stack>
</Stack>
);
Expand Down

0 comments on commit f4c0368

Please sign in to comment.