Add margin to notification box (#1436)

* Add margin to notification box

* Code fix
This commit is contained in:
Wojciech Mista 2021-09-28 12:46:34 +02:00 committed by GitHub
parent e018ea5b7d
commit 04dac84d63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
import { makeStyles } from "@saleor/macaw-ui"; import { makeStyles } from "@saleor/macaw-ui";
export const useStyles = makeStyles( export const useStyles = makeStyles(
() => ({ theme => ({
container: { container: {
display: "grid", display: "grid",
gridTemplateRows: "repeat(auto-fill, minmax(90px, 1fr))", gridTemplateRows: "repeat(auto-fill, minmax(90px, 1fr))",
@ -16,7 +16,8 @@ export const useStyles = makeStyles(
notification: { notification: {
// Parent container has disabled pointer events so we need to turn them on // Parent container has disabled pointer events so we need to turn them on
// for action and timer pausing to work // for action and timer pausing to work
pointerEvents: "all" pointerEvents: "all",
margin: theme.spacing(2)
} }
}), }),
{ name: "MessageManager" } { name: "MessageManager" }