diff --git a/packages/vkui/src/components/Banner/Banner.module.css b/packages/vkui/src/components/Banner/Banner.module.css index 8e4a7ada90f..b922768bdb3 100644 --- a/packages/vkui/src/components/Banner/Banner.module.css +++ b/packages/vkui/src/components/Banner/Banner.module.css @@ -14,7 +14,7 @@ display: flex; flex-flow: row nowrap; align-items: stretch; - padding: 12px 12px 12px 16px; + padding: 12px; background-color: var(--vkui--color_background_secondary); border-radius: var(--vkui--size_border_radius--regular); overflow: hidden; @@ -120,13 +120,6 @@ opacity: 0.72; } -/** - * Size "s" - */ -.Banner--size-s .Banner__before { - margin-left: -4px; -} - /** * Size "m" */ diff --git a/packages/vkui/src/components/Banner/Banner.tsx b/packages/vkui/src/components/Banner/Banner.tsx index b2a13d90974..a8aa2b06d79 100644 --- a/packages/vkui/src/components/Banner/Banner.tsx +++ b/packages/vkui/src/components/Banner/Banner.tsx @@ -13,11 +13,6 @@ import { Text } from '../Typography/Text/Text'; import { Title } from '../Typography/Title/Title'; import styles from './Banner.module.css'; -const stylesSize = { - s: styles['Banner--size-s'], - m: styles['Banner--size-m'], -}; - export interface BannerProps extends HTMLAttributesWithRootRef { /** * Тип баннера. @@ -158,7 +153,7 @@ export const Banner = ({ !noPadding && styles['Banner--withPadding'], platform === Platform.IOS && styles['Banner--ios'], mode === 'image' && styles['Banner--mode-image'], - stylesSize[size], + size === 'm' && styles['Banner--size-m'], mode === 'image' && imageTheme === 'dark' && styles['Banner--inverted'], )} > diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-dark-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-dark-1-snap.png index 27c891c168f..ca3f931d99f 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-dark-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:31e550644c5d95adcb43ec65b69c322ed5a8f27ada3e1a863fc5fc40e46cd0d9 -size 183580 +oid sha256:5e503cd3ca31dd419a43fdabdd241b9101f47223407f0a866b5c92200e94f43d +size 183327 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-light-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-light-1-snap.png index 511a88edc98..878e970b4c8 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-light-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-android-chromium-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d760ea6a5521461fbae4bcfde9e79d12cf888c74f0b646c051ba4264627a9d67 -size 181229 +oid sha256:7ea0c989f7a5786593f071b64155c2c4d71de1564f714effcfafababa3772270 +size 180991 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-dark-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-dark-1-snap.png index 59724d589ab..b9b493a12b6 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-dark-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:63375cb2d1311a054533daf95c392ef85ceda702562e64973c0ac38c6dc18276 -size 172883 +oid sha256:909677f4bb48bc3af65773817eb419a2bdbaee1782d5f81855d1e8a727a09f82 +size 173042 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-light-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-light-1-snap.png index a1f8f8c88e0..620945abc97 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-light-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-ios-webkit-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fafab82974b19ba65d702d8b39fd425489fe84d0dfb79de2e09daadea17d868b -size 171205 +oid sha256:0f6ded7f1cc5c3e079db93cfba024484a3983f616811791e6fe648646e7d851f +size 171255 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-dark-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-dark-1-snap.png index 7f5c04c3b5a..d5a3ee81f71 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-dark-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f583392a05e68706c6bc2388a135d394927a543e0d429b3e6db0b4e2a6cdd25c -size 179426 +oid sha256:6e9f53ed602e7efe6830c285ed802d99b066d37304960f4890f61f100220aa1e +size 179188 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-light-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-light-1-snap.png index ca851487977..994fd12af9f 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-light-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b5ea9f27b271d34d6a191de29bac3f7709449c9bc6cd3a9a5553716d83d14d9a -size 181744 +oid sha256:d33abe509e28fe8db58a9d02e2ea4c4caf8ea59aff1b045170ae181c0d63029e +size 181492 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-dark-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-dark-1-snap.png index c8a8e0a3e20..48b15997842 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-dark-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:729d598d97c3859ecb43fffdf1d3d3fc4ccdababdfd74d2a410a0da0c84ed304 -size 249841 +oid sha256:779140040cbb3a645bc384e60a493f902ce202d51c8ce362d2f6858e1bb73bfd +size 249768 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-light-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-light-1-snap.png index 3a076b9e8a5..75b6f6a333d 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-light-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:98b757528da01d5966f9776aca36dbdad6ee72b3532fc7191b058f21e596ca30 -size 256583 +oid sha256:f8613d0df1f81427b1b906d7619b556c234f3343ca615625155bd1f50c2f645e +size 256646 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-dark-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-dark-1-snap.png index 0ab16ddf082..5907538f314 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-dark-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f741d912327e9567e7d2f49c41ca51eeda34a488292205b0fbc25dba021578d1 -size 164097 +oid sha256:bbedc0e0c546666b6aeb409511ab31904858be98de125fad5d399c6da157d041 +size 164110 diff --git a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-light-1-snap.png b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-light-1-snap.png index 1b80a53d172..b585cb10d8c 100644 --- a/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-light-1-snap.png +++ b/packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e8c5aa3919877a63eb7ba9353db004418546dd130fd2ab5454599137a2e9b5f2 -size 166781 +oid sha256:532e8722cb828ba83df6f18d588d7d1f364261e48179e0bf40e62bb470be2dcc +size 166824