Skip to content

Commit

Permalink
Fix toast weirdness on iOS scrolling (#461)
Browse files Browse the repository at this point in the history
* Fix toast weirdness on iOS scrolling

* Remove unnecessary css hacks
  • Loading branch information
SatsAllDay authored Aug 31, 2023
1 parent 9065713 commit c6dfd1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const ToastProvider = ({ children }) => {

return (
<ToastContext.Provider value={toaster}>
<ToastContainer className='pb-3 pe-3' position='bottom-end' containerPosition='fixed'>
<ToastContainer className={`pb-3 pe-3 ${styles.toastContainer}`} position='bottom-end' containerPosition='fixed'>
{toasts.map(toast => (
<Toast
key={toast.id} bg={toast.variant} show autohide={toast.autohide}
Expand Down
6 changes: 5 additions & 1 deletion components/toast.module.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.toastContainer {
transform: translate3d(0,0,0);
}

.toast {
width: auto;
border: 1px solid var(--bs-success-border-subtle);
color: #fff;
}

.toastClose {
color: #fff;
color: #fff;
font-family: "lightning";
font-size: 150%;
line-height: 1rem;
Expand Down

0 comments on commit c6dfd1e

Please sign in to comment.