Skip to content

Commit

Permalink
Add left and right margins to modals (#2082)
Browse files Browse the repository at this point in the history
* Add left and right margins to modals

* Release notes
  • Loading branch information
joel-jeremy authored Dec 14, 2023
1 parent ca55d9c commit f90fe04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/desktop-client/src/components/common/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -93,6 +93,7 @@ const Modal = ({
backgroundColor: 'transparent',
padding: 0,
pointerEvents: 'auto',
margin: '0 10px',
...contentStyle,
},
overlay: {
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2082.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [joel-jeremy]
---

Add left and right margin to modals.

0 comments on commit f90fe04

Please sign in to comment.