Skip to content

Commit ff3ba6e

Browse files
committed
fix: export margin on mobile and export ToastIcon type
1 parent a6250d5 commit ff3ba6e

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type {
2222
Id,
2323
ToastItem,
2424
ClearWaitingQueueFunc,
25-
OnChangeCallback
25+
OnChangeCallback,
26+
ToastIcon
2627
} from './types';
2728
export type { CloseButtonProps } from './components/CloseButton';

src/style.css

+22-22
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,28 @@
9090
align-items: end;
9191
}
9292

93+
.Toastify__toast {
94+
--y: 0;
95+
position: relative;
96+
touch-action: none;
97+
width: var(--toastify-toast-width);
98+
min-height: var(--toastify-toast-min-height);
99+
box-sizing: border-box;
100+
margin-bottom: 1rem;
101+
padding: var(--toastify-toast-padding);
102+
border-radius: var(--toastify-toast-bd-radius);
103+
box-shadow: var(--toastify-toast-shadow);
104+
max-height: var(--toastify-toast-max-height);
105+
font-family: var(--toastify-font-family);
106+
/* webkit only issue #791 */
107+
z-index: 0;
108+
/* inner swag */
109+
display: flex;
110+
flex: 1 auto;
111+
align-items: center;
112+
word-break: break-word;
113+
}
114+
93115
@media only screen and (max-width: 480px) {
94116
.Toastify__toast-container {
95117
width: 100vw;
@@ -119,28 +141,6 @@
119141
}
120142
}
121143

122-
.Toastify__toast {
123-
--y: 0;
124-
position: relative;
125-
touch-action: none;
126-
width: var(--toastify-toast-width);
127-
min-height: var(--toastify-toast-min-height);
128-
box-sizing: border-box;
129-
margin-bottom: 1rem;
130-
padding: var(--toastify-toast-padding);
131-
border-radius: var(--toastify-toast-bd-radius);
132-
box-shadow: var(--toastify-toast-shadow);
133-
max-height: var(--toastify-toast-max-height);
134-
font-family: var(--toastify-font-family);
135-
/* webkit only issue #791 */
136-
z-index: 0;
137-
/* inner swag */
138-
display: flex;
139-
flex: 1 auto;
140-
align-items: center;
141-
word-break: break-word;
142-
}
143-
144144
.Toastify__toast-container[data-stacked='true'] {
145145
width: var(--toastify-toast-width);
146146
}

0 commit comments

Comments
 (0)