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

style: remove bottom margin of model store error message #2653

Merged
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
7 changes: 6 additions & 1 deletion react/src/components/ModelCardModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ const ModelCardModal: React.FC<ModelCardModalProps> = ({
>
{model_card?.error_msg ? (
<Flex direction="column" wrap="wrap" align="stretch" gap={'sm'}>
<Alert message={model_card?.error_msg} type="error" showIcon />
<Alert
message={model_card?.error_msg}
type="error"
showIcon
style={{ width: '100%' }}
/>
<Empty
style={{ width: '100%' }}
image={Empty.PRESENTED_IMAGE_SIMPLE}
Expand Down
6 changes: 5 additions & 1 deletion react/src/pages/ModelStoreListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,12 @@ const ModelStoreListPage: React.FC = () => {
))}
{item?.error_msg && (
<Alert
style={{ width: '100%' }}
message={
<Typography.Paragraph ellipsis={{ rows: 6 }}>
<Typography.Paragraph
ellipsis={{ rows: 6 }}
style={{ marginBottom: 0 }}
>
{item.error_msg}
</Typography.Paragraph>
}
Expand Down
Loading