@sveltia/ui 0.53.0 → 0.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,9 +91,9 @@
91
91
 
92
92
  // eslint-disable-next-line jsdoc/require-jsdoc
93
93
  const setMode = () => {
94
- position = mql.matches
95
- ? 'bottom-center'
96
- : `bottom-${document.dir === 'rtl' ? 'left' : 'right'}`;
94
+ // In the RTL layout, a `bottom-right`-positioned toast is actually displayed in the
95
+ // bottom-left corner thanks to the `inset-inline-start/end` CSS properties
96
+ position = mql.matches ? 'bottom-center' : 'bottom-right';
97
97
  };
98
98
 
99
99
  setMode();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.53.0",
3
+ "version": "0.53.1",
4
4
  "description": "A collection of Svelte components and utilities for building user interfaces.",
5
5
  "repository": {
6
6
  "type": "git",