Skip to content

Commit

Permalink
fix(Banner): padding in (#5824)
Browse files Browse the repository at this point in the history
- fixes #5788
  • Loading branch information
SevereCloud authored Sep 19, 2023
1 parent 445c6d7 commit 2168789
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 34 deletions.
9 changes: 1 addition & 8 deletions packages/vkui/src/components/Banner/Banner.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -120,13 +120,6 @@
opacity: 0.72;
}

/**
* Size "s"
*/
.Banner--size-s .Banner__before {
margin-left: -4px;
}

/**
* Size "m"
*/
Expand Down
7 changes: 1 addition & 6 deletions packages/vkui/src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement> {
/**
* Тип баннера.
Expand Down Expand Up @@ -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'],
)}
>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2168789

Please sign in to comment.