@snack-uikit/toaster 0.6.9 → 0.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 0.6.10 (2024-03-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-4585:** fix mobile view ([002a53a](https://github.com/cloud-ru-tech/snack-uikit/commit/002a53acb92dc7c54cf9262e805179714374c4d1))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 0.6.9 (2024-03-27)
7
18
 
8
19
 
@@ -58,6 +58,12 @@
58
58
  .containerWithCloseAllButton{
59
59
  margin-bottom:calc(var(--size-toaster-button-close-column, 40px) + var(--space-toaster-system-event-gap, 8px));
60
60
  }
61
+
62
+ @media only screen and (max-width: 480px){
63
+ .buttonCloseColumnWrapper{
64
+ max-width:calc(100vw - 2 * var(--space-toaster-toast-system-event-container-padding, 16px));
65
+ }
66
+ }
61
67
  :global .osThemeSnack.Toastify__toast-container{
62
68
  position:fixed;
63
69
  box-sizing:border-box;
@@ -133,6 +139,7 @@
133
139
  width:var(--size-toaster-toast-system-event-container, 320px);
134
140
  display:flex;
135
141
  flex-direction:column;
142
+ max-width:calc(100vw - 2 * var(--space-toaster-toast-system-event-container-padding, 16px));
136
143
  }
137
144
  :global .osThemeSnack.Toastify__toast-container.osThemeSnack__toast-container__user-action{
138
145
  padding-bottom:var(--space-toaster-user-action-padding-bottom, 8px);
@@ -151,4 +158,15 @@
151
158
  bottom:0;
152
159
  left:50%;
153
160
  transform:translateX(-50%);
161
+ }
162
+ @media only screen and (max-width: 480px){
163
+ :global .osThemeSnack.Toastify__toast-container--bottom-right{
164
+ right:0;
165
+ bottom:0;
166
+ }
167
+ :global .osThemeSnack.Toastify__toast-container--bottom-center{
168
+ bottom:0;
169
+ left:50%;
170
+ transform:translateX(-50%);
171
+ }
154
172
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Toaster",
7
- "version": "0.6.9",
7
+ "version": "0.6.10",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -40,5 +40,5 @@
40
40
  "classnames": "2.3.2",
41
41
  "react-toastify": "10.0.5"
42
42
  },
43
- "gitHead": "ca316b36e00edbe217cabcc9591488b596555b35"
43
+ "gitHead": "f4d41fab7614421b8cb046cea68c41a380132af2"
44
44
  }
@@ -64,6 +64,12 @@
64
64
  margin-bottom: calc($size-toaster-button-close-column + $space-toaster-system-event-gap);
65
65
  }
66
66
 
67
+ @media only screen and (max-width: 480px) {
68
+ .buttonCloseColumnWrapper {
69
+ max-width: calc(100vw - 2 * $space-toaster-toast-system-event-container-padding);
70
+ }
71
+ }
72
+
67
73
  $theme-name: osThemeSnack;
68
74
 
69
75
  /* stylelint-disable-next-line selector-pseudo-class-no-unknown */
@@ -159,6 +165,7 @@ $theme-name: osThemeSnack;
159
165
 
160
166
  display: flex;
161
167
  flex-direction: column;
168
+ max-width: calc(100vw - 2 * $space-toaster-toast-system-event-container-padding);
162
169
  }
163
170
 
164
171
  .#{$theme-name}.Toastify__toast-container.osThemeSnack__toast-container__user-action {
@@ -180,4 +187,17 @@ $theme-name: osThemeSnack;
180
187
  left: 50%;
181
188
  transform: translateX(-50%);
182
189
  }
190
+
191
+ @media only screen and (max-width: 480px) {
192
+ .#{$theme-name}.Toastify__toast-container--bottom-right {
193
+ right: 0;
194
+ bottom: 0;
195
+ }
196
+
197
+ .#{$theme-name}.Toastify__toast-container--bottom-center {
198
+ bottom: 0;
199
+ left: 50%;
200
+ transform: translateX(-50%);
201
+ }
202
+ }
183
203
  }