Skip to content

Commit

Permalink
chore: Update toast component styles for responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Jul 22, 2024
1 parent 809e273 commit c0ce2d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/src/styles/toast-component.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
.t_icon {
fill: var(--text-color);
margin-top: 0.1rem;
flex-shrink: 0;
}

.t_content {
Expand Down
8 changes: 8 additions & 0 deletions library/src/styles/toast-context.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
z-index: 9999;
overflow: hidden;
transition: max-height 0.5s ease-in-out;
width: 100%;
}

.t_default_font {
Expand Down Expand Up @@ -58,3 +59,10 @@
left: 50%;
transform: translateX(-50%);
}

@media (min-width: 768px) {
.t_toasts {
max-width: 350px;
margin: 0 auto;
}
}

0 comments on commit c0ce2d1

Please sign in to comment.