Skip to content

Commit ac8f7d1

Browse files
committed
add gutter
1 parent 94454a0 commit ac8f7d1

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

packages/app/src/app/pages/Dashboard/Content/Sandboxes/Filters/FilterOptions/elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const OverlayContainer = styled.div`
4141
z-index: 10;
4242
color: rgba(255, 255, 255, 0.8);
4343
font-size: 0.875rem;
44-
44+
margin: 0;
4545
border-radius: 2px;
4646
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
4747

packages/app/src/app/pages/Dashboard/Content/Sandboxes/Filters/FilterOptions/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ const FilterOptionsComponent: React.FC<IFilterOptionsProps> = ({
1616
possibleTemplates,
1717
hideFilters,
1818
}: IFilterOptionsProps) => {
19+
const menu = useMenuState({
20+
gutter: 10,
21+
placement: 'bottom-end',
22+
});
23+
1924
const {
2025
state: {
2126
dashboard: { isTemplateSelected, filters },

packages/app/src/app/pages/Dashboard/Content/Sandboxes/Filters/SortOptions/elements.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const OverlayContainer = styled.div`
6262
z-index: 10;
6363
color: rgba(255, 255, 255, 0.8);
6464
font-size: 0.875rem;
65-
65+
margin: 0;
6666
border-radius: 2px;
6767
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
6868

packages/app/src/app/pages/Dashboard/Content/Sandboxes/Filters/SortOptions/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export const SortOptions: React.FC<{ hideOrder: boolean }> = ({
2323
dashboard: { orderByChanged },
2424
},
2525
} = useOvermind();
26-
const menu = useMenuState();
26+
const menu = useMenuState({
27+
gutter: 10,
28+
});
2729

2830
const toggleSort = e => {
2931
e.preventDefault();

0 commit comments

Comments
 (0)