diff --git a/packages/ui/src/components/DataManagerTable/Popover.tsx b/packages/ui/src/components/DataManagerTable/Popover.tsx
index e5895ae7..79fb7fbe 100644
--- a/packages/ui/src/components/DataManagerTable/Popover.tsx
+++ b/packages/ui/src/components/DataManagerTable/Popover.tsx
@@ -1,7 +1,9 @@
import styled from "@emotion/styled";
+import { useBreakpoints } from "../../styles/breakpoints.js";
import { Spacing } from "../../styles/tokens/spacing.js";
import { z } from "../../styles/z-index.js";
import { Button } from "../Button.js";
+import { Modal } from "../Modal.js";
type Side = "left" | "right";
@@ -21,6 +23,9 @@ export const Popover = ({
onClear: () => void;
children: React.ReactNode;
}) => {
+ const breakPoint = useBreakpoints();
+ const isSm = breakPoint.isSm();
+
const handleApply = () => {
onApply();
};
@@ -33,18 +38,29 @@ export const Popover = ({
}
};
+ const content = (
+
+ {children}
+
+
+ );
+ if (isSm) {
+ return (
+ setShow(false)} smKind="fullscreen">
+ {content}
+
+ );
+ }
+
return (
-
-
- {children}
-
-
+
+ {content}
);
};
@@ -64,11 +80,11 @@ const Container = styled.div<{ show: boolean; side: Side }>`
0px 4px 8px 0px rgba(0, 0, 0, 0.08);
`;
-const Content = styled.div`
+const Content = styled.div<{ isSm?: boolean }>`
display: flex;
flex-direction: column;
gap: ${Spacing.px.xl};
- padding: ${Spacing.px.lg};
+ padding: ${({ isSm }) => (isSm ? "0px" : Spacing.px.lg)};
`;
const Footer = styled.div`
diff --git a/packages/ui/src/components/Modal.tsx b/packages/ui/src/components/Modal.tsx
index 8b1b05bf..cd594b1c 100644
--- a/packages/ui/src/components/Modal.tsx
+++ b/packages/ui/src/components/Modal.tsx
@@ -531,7 +531,7 @@ const ModalContent = styled.div<{
display: flex;
flex-direction: column;
- ${({ ghost, width }) => `
+ ${({ ghost, smKind, width }) => `
${ghost ? "" : standardBorderRadius(16)}
width: ${width}px;
`}
@@ -539,6 +539,7 @@ const ModalContent = styled.div<{
${({ smKind }) =>
smKind === "fullscreen"
? bp.sm(`
+ border-radius: 0px;
width: 100%;
height: 100dvh;
`)