diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx index 354b9027..6218d93a 100644 --- a/src/components/Modal.tsx +++ b/src/components/Modal.tsx @@ -19,7 +19,7 @@ export const Modal = ({ open, onClose, children }: ModalProps): JSX.Element => { open={open} onClose={onClose} > -
+
{
-
+
{children}
diff --git a/src/components/hardware/Badge.tsx b/src/components/hardware/Badge.tsx index b991b09b..4ef5413f 100644 --- a/src/components/hardware/Badge.tsx +++ b/src/components/hardware/Badge.tsx @@ -11,8 +11,8 @@ export const Badge = ({ name, color, icon }: BadgeProps): JSX.Element => {
-
{icon}
- {name} +
{icon}
+ {name}
); }; diff --git a/src/components/hardware/HardwareModal.tsx b/src/components/hardware/HardwareModal.tsx index 232d1310..6f2d8b12 100644 --- a/src/components/hardware/HardwareModal.tsx +++ b/src/components/hardware/HardwareModal.tsx @@ -29,7 +29,7 @@ export const HardwareModal = ({ close, }: HardwareModal): JSX.Element => { const [hideDetails, setHideDetails] = useState(false); - const { breakpoint } = useBreakpoint(BREAKPOINTS); + const { breakpoint } = useBreakpoint(BREAKPOINTS, 'sm'); return ( @@ -112,22 +112,24 @@ export const HardwareModal = ({ initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} - className="absolute -bottom-3 right-0 m-auto mr-2 ml-auto flex gap-2 md:bottom-2 md:mr-14 md:mt-2" + className="absolute -bottom-3 right-0 m-auto mr-2 ml-auto flex md:inset-x-1 md:bottom-4 md:mt-2" > - {device.features.BLE && ( - } - /> - )} - {device.features.WiFi && ( - } - /> - )} +
+ {device.features.BLE && ( + } + /> + )} + {device.features.WiFi && ( + } + /> + )} +
)}