Skip to content

Commit

Permalink
Fix object card (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus authored Aug 20, 2024
1 parent 0afd0ed commit 80b560f
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/lib/kit/components/Card/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@
}

&__title {
display: flex;
max-width: 533px;
height: 20px;
}

&__title-popover {
height: 20px;
}

&__note {
Expand Down
1 change: 1 addition & 0 deletions src/lib/kit/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export const Card: React.FC<CardProps> = ({
content={propsTitle}
disabled={titlePopoverDisabled}
placement={COMMON_POPOVER_PLACEMENT}
className={b('title-popover')}
>
<Text
className={b('title')}
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.
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.
1 change: 0 additions & 1 deletion src/lib/kit/components/Layouts/Section/Section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ $block: '.#{$ns}section';

&_with-popover {
display: flex;
align-items: center;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/kit/constants/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {PopoverProps} from '@gravity-ui/uikit';

export const COMMON_POPOVER_PLACEMENT: PopoverProps['placement'] = ['bottom', 'top'];

export const COMMON_TITLE_MAX_WIDTH = 533;
export const COMMON_TITLE_MAX_WIDTH = 523;

export const OBJECT_VALUE_PROPERTY_NAME = 'value';

Expand Down

0 comments on commit 80b560f

Please sign in to comment.