Skip to content

Commit c0ce2d1

Browse files
committed
chore: Update toast component styles for responsive layout
1 parent 809e273 commit c0ce2d1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

library/src/styles/toast-component.css

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
.t_icon {
8181
fill: var(--text-color);
8282
margin-top: 0.1rem;
83+
flex-shrink: 0;
8384
}
8485

8586
.t_content {

library/src/styles/toast-context.css

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
z-index: 9999;
88
overflow: hidden;
99
transition: max-height 0.5s ease-in-out;
10+
width: 100%;
1011
}
1112

1213
.t_default_font {
@@ -58,3 +59,10 @@
5859
left: 50%;
5960
transform: translateX(-50%);
6061
}
62+
63+
@media (min-width: 768px) {
64+
.t_toasts {
65+
max-width: 350px;
66+
margin: 0 auto;
67+
}
68+
}

0 commit comments

Comments
 (0)