@idds/styles 1.0.29 → 1.0.30
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/package.json +1 -1
- package/src/components/toast.css +12 -1
package/package.json
CHANGED
package/src/components/toast.css
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
display: flex;
|
|
9
9
|
gap: var(--ina-spacing-2);
|
|
10
10
|
padding: var(--ina-spacing-2);
|
|
11
|
+
max-width: 100vw;
|
|
12
|
+
box-sizing: border-box;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
/* Position variants */
|
|
@@ -86,7 +88,8 @@
|
|
|
86
88
|
display: flex;
|
|
87
89
|
align-items: center;
|
|
88
90
|
width: 100%;
|
|
89
|
-
|
|
91
|
+
min-width: 358px;
|
|
92
|
+
max-width: 100%;
|
|
90
93
|
transition: opacity 300ms ease-in-out;
|
|
91
94
|
background-color: var(--ina-background-primary);
|
|
92
95
|
border: 1px solid var(--ina-stroke-primary);
|
|
@@ -100,6 +103,7 @@
|
|
|
100
103
|
display: flex;
|
|
101
104
|
align-items: center;
|
|
102
105
|
flex: 1;
|
|
106
|
+
min-width: 0; /* Allow content to shrink below content size */
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
.ina-toast__icon {
|
|
@@ -110,6 +114,10 @@
|
|
|
110
114
|
.ina-toast__text-area {
|
|
111
115
|
display: flex;
|
|
112
116
|
flex-direction: column;
|
|
117
|
+
flex: 1;
|
|
118
|
+
min-width: 0; /* Allow text to shrink below content size */
|
|
119
|
+
overflow-wrap: break-word;
|
|
120
|
+
word-break: break-word;
|
|
113
121
|
}
|
|
114
122
|
|
|
115
123
|
.ina-toast__title {
|
|
@@ -189,7 +197,10 @@
|
|
|
189
197
|
/* Mobile (< 640px) */
|
|
190
198
|
@media (max-width: 639px) {
|
|
191
199
|
.ina-toast {
|
|
200
|
+
/* Jika viewport < 358px, gunakan max-width dari viewport untuk mencegah overflow */
|
|
192
201
|
max-width: calc(100vw - var(--ina-spacing-8));
|
|
202
|
+
/* Min-width akan otomatis tidak berlaku jika max-width lebih kecil */
|
|
203
|
+
min-width: min(358px, calc(100vw - var(--ina-spacing-8)));
|
|
193
204
|
padding: var(--ina-spacing-3);
|
|
194
205
|
min-height: 40px;
|
|
195
206
|
}
|