Skip to content

Commit f1cc8bd

Browse files
authored
fix(ui): placement issue with sonner toasts (#10641)
Fixes #10633 Sonner had an upstream [update](https://github.com/emilkowalski/sonner/releases/tag/v.1.7.2) that moves offsets to a variables, some end projects were installing 1.7.2 whereas in our monorepo we have 1.7.0 hence it wasn't being caught internally.
1 parent baad382 commit f1cc8bd

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"react-image-crop": "10.1.8",
125125
"react-select": "5.9.0",
126126
"scheduler": "0.25.0",
127-
"sonner": "^1.7.0",
127+
"sonner": "^1.7.2",
128128
"ts-essentials": "10.0.3",
129129
"use-context-selector": "2.0.0",
130130
"uuid": "10.0.0"

packages/ui/src/scss/toasts.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
@layer payload-default {
44
.payload-toast-container {
5+
--offset: calc(var(--gutter-h) / 2);
6+
57
padding: 0;
68
margin: 0;
79

pnpm-lock.yaml

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)