@olwiba/cn 0.1.53 → 0.1.54
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.
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5218,18 +5218,24 @@ var Toaster = ({
|
|
|
5218
5218
|
so setting the properties directly is both simpler and no longer
|
|
5219
5219
|
dependent on variables whose declaration site we do not control. */
|
|
5220
5220
|
left: unset;
|
|
5221
|
-
right: 0
|
|
5222
|
-
top: 0
|
|
5223
|
-
height: 1.
|
|
5224
|
-
width: 1.
|
|
5221
|
+
right: 0;
|
|
5222
|
+
top: 0;
|
|
5223
|
+
height: 1.5rem;
|
|
5224
|
+
width: 1.5rem;
|
|
5225
5225
|
padding: 0;
|
|
5226
5226
|
border: none;
|
|
5227
|
-
/*
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5227
|
+
/* Flush into the corner, with the top-right corner following the
|
|
5228
|
+
toast's own curve rather than approximating it.
|
|
5229
|
+
|
|
5230
|
+
An inset looked deliberate in isolation and wrong in place: the
|
|
5231
|
+
button read as floating in the padding instead of occupying the
|
|
5232
|
+
corner, and the gap was uneven because the toast's radius pulls the
|
|
5233
|
+
card edge away diagonally. Sitting at 0/0 with the same
|
|
5234
|
+
--border-radius sonner gives the card, the hover fill ends exactly
|
|
5235
|
+
where the card ends and the two curves are one line. The remaining
|
|
5236
|
+
corners stay square, since they meet content rather than an edge. */
|
|
5237
|
+
border-radius: 0;
|
|
5238
|
+
border-top-right-radius: var(--border-radius);
|
|
5233
5239
|
background: transparent;
|
|
5234
5240
|
/* Inherited rather than a fixed token: on a richColors toast the
|
|
5235
5241
|
text is already the only colour guaranteed to read against that
|