diff --git a/apps/documenteditor/mobile/src/less/app-ios.less b/apps/documenteditor/mobile/src/less/app-ios.less index 3646f7c251..a2a2016679 100644 --- a/apps/documenteditor/mobile/src/less/app-ios.less +++ b/apps/documenteditor/mobile/src/less/app-ios.less @@ -57,5 +57,36 @@ .back-reader-mode { margin-left: 10px; } + + // Snackbar + .snackbar { + max-width: 195px; + max-height: 48px; + position: absolute; + bottom: 24px; + left: calc(50% - 195px / 2); + background: rgba(0, 0, 0, .9); + border-radius: 4px; + z-index: 1000000; + &__content { + padding: 15px 16.5px; + } + &__text { + margin: 0; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 18px; + letter-spacing: -0.078px; + color: @fill-white; + text-align: center; + } + } + + @media(max-width: 450px) { + .snackbar { + bottom: 50px; + } + } } diff --git a/apps/documenteditor/mobile/src/less/app-material.less b/apps/documenteditor/mobile/src/less/app-material.less index 417487ff05..da45b41bd9 100644 --- a/apps/documenteditor/mobile/src/less/app-material.less +++ b/apps/documenteditor/mobile/src/less/app-material.less @@ -110,9 +110,8 @@ .snackbar { position: absolute; width: 344px; - max-width: 344px; - height: 48px; - left: 8px; + max-height: 48px; + left: calc(50% - 344px / 2); bottom: 16px; background: #333333; border-radius: 4px; @@ -128,24 +127,20 @@ font-size: 14px; line-height: 20px; letter-spacing: 0.25px; + text-align: center; } } - .snackbar-enter { - opacity: 0; - } - - .snackbar-enter-active { - opacity: 1; - transition: opacity 200ms; - } - - .snackbar-exit { - opacity: 1; - } - - .snackbar-exit-active { - opacity: 0; - transition: opacity 200ms; + @media(max-width: 450px) { + .snackbar { + width: auto; + max-width: 100%; + left: 16px; + right: 16px; + bottom: 8px; + &__text { + text-align: left; + } + } } } \ No newline at end of file diff --git a/apps/documenteditor/mobile/src/less/app.less b/apps/documenteditor/mobile/src/less/app.less index d7e78e9836..4158cf1801 100644 --- a/apps/documenteditor/mobile/src/less/app.less +++ b/apps/documenteditor/mobile/src/less/app.less @@ -328,3 +328,19 @@ } } +// Snackbar animation +.snackbar-enter { + opacity: 0; +} +.snackbar-enter-active { + opacity: 1; + transition: opacity 300ms; +} +.snackbar-exit { + opacity: 1; +} +.snackbar-exit-active { + opacity: 0; + transition: opacity 300ms; +} + diff --git a/apps/documenteditor/mobile/src/page/main.jsx b/apps/documenteditor/mobile/src/page/main.jsx index cd948f8df6..6f4c367130 100644 --- a/apps/documenteditor/mobile/src/page/main.jsx +++ b/apps/documenteditor/mobile/src/page/main.jsx @@ -189,11 +189,7 @@ class MainPage extends Component { {