Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix object card #223

Merged
merged 4 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading