Skip to content

Commit

Permalink
fix(bridge-ui): notification toast (#13926)
Browse files Browse the repository at this point in the history
Co-authored-by: David <[email protected]>
  • Loading branch information
jscriptcoder and davidtaikocha authored Jun 8, 2023
1 parent 125ecff commit 9d0a502
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions packages/bridge-ui/src/components/NotificationToast.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,31 @@
</div>

<style>
/* TODO: Small devices. We need design!! */
.toast {
--toastContainerRight: 1rem;
--toastContainerRight: auto;
--toastContainerBottom: auto;
--toastContainerTop: 5rem;
--toastWidth: 100%;
--toastContainerTop: 4rem;
--toastContainerLeft: calc(50vw - 150px);
--toastWidth: 300px;
--toastMinHeight: 2rem;
--toastPadding: 0 0.5rem;
--toastBorderRadius: 0.4rem;
--toastColor: #e3e3e3;
}
/*
TODO: decides at which breakpoint we are no longer
in small screens. Design!!
*/
/* sm */
@media (min-width: 640px) {
.toast {
--toastWidth: 18rem;
--toastWidth: 20rem;
--toastContainerRight: 0.5rem;
--toastContainerLeft: auto;
}
}
/* md */
@media (min-width: 768px) {
.toast {
--toastContainerRight: 1.5rem;
}
}
</style>

0 comments on commit 9d0a502

Please sign in to comment.