A local-first personal finance app
Add left and right margins to modals (#2082)
Joel Jeremy Marquezf90fe04b2ba1
diff --git a/packages/desktop-client/src/components/common/Modal.tsx b/packages/desktop-client/src/components/common/Modal.tsxindex 3eac7bf303..6f1de3b2f0 100644--- a/packages/desktop-client/src/components/common/Modal.tsx+++ b/packages/desktop-client/src/components/common/Modal.tsx@@ -23,7 +23,7 @@ export type ModalProps = {isHidden?: boolean;children: ReactNode | (() => ReactNode);size?: { width?: number; height?: number };- padding?: number;+ padding?: CSSProperties['padding'];showHeader?: boolean;showTitle?: boolean;showClose?: boolean;@@ -93,6 +93,7 @@ const Modal = ({backgroundColor: 'transparent',padding: 0,pointerEvents: 'auto',+ margin: '0 10px',...contentStyle,},overlay: {diff --git a/upcoming-release-notes/2082.md b/upcoming-release-notes/2082.mdnew file mode 100644index 0000000000..e27bde08a4--- /dev/null+++ b/upcoming-release-notes/2082.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [joel-jeremy]+---++Add left and right margin to modals.