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

[Backport 2.x] Align font size and style #357

Merged
merged 1 commit into from
Sep 4, 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
12 changes: 6 additions & 6 deletions public/components/monitoring/model_deployment_table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const ModelDeploymentTable = ({
<EuiEmptyPrompt
style={{ maxWidth: 528 }}
body={
<>
<EuiText size="s">
<EuiSpacer size="l" />
Deployed models will appear here. For more information, see{' '}
<EuiLink
Expand All @@ -239,7 +239,7 @@ export const ModelDeploymentTable = ({
</EuiLink>
.
<EuiSpacer size="xl" />
</>
</EuiText>
}
aria-label="no deployed models"
/>
Expand All @@ -256,22 +256,22 @@ export const ModelDeploymentTable = ({
{loading ? (
<EuiEmptyPrompt
body={
<>
<EuiText size="s">
<EuiSpacer size="l" />
Loading deployed models...
<EuiSpacer size="xl" />
</>
</EuiText>
}
aria-label="loading models"
/>
) : (
<EuiEmptyPrompt
title={<EuiSpacer size="s" />}
body={
<>
<EuiText size="s">
There are no results to your search. Reset the search criteria to view the
deployed models.
</>
</EuiText>
}
actions={
<>
Expand Down
6 changes: 3 additions & 3 deletions public/components/preview_panel/connector_details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import React from 'react';
import {
EuiDescriptionList,
EuiDescriptionListTitle,
EuiTitle,
EuiSpacer,
EuiDescriptionListDescription,
EuiFlexGroup,
EuiFlexItem,
EuiText,
} from '@elastic/eui';
import { CopyableText } from '../common';

Expand All @@ -20,9 +20,9 @@ export const ConnectorDetails = (props: { name?: string; id?: string; descriptio
return (
<>
<EuiSpacer size="m" />
<EuiTitle size="s">
<EuiText size="s">
<h3>Connector details</h3>
</EuiTitle>
</EuiText>
<EuiSpacer size="m" />
<EuiDescriptionList compressed>
<EuiFlexGroup>
Expand Down
6 changes: 3 additions & 3 deletions public/components/preview_panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
EuiFlyout,
EuiFlyoutBody,
EuiFlyoutHeader,
EuiTitle,
EuiHealth,
EuiDescriptionList,
EuiDescriptionListTitle,
Expand All @@ -17,6 +16,7 @@ import {
EuiTextColor,
EuiFlexGroup,
EuiFlexItem,
EuiText,
} from '@elastic/eui';
import { APIProvider } from '../../apis/api_provider';
import { useFetcher } from '../../hooks/use_fetcher';
Expand Down Expand Up @@ -114,9 +114,9 @@ export const PreviewPanel = ({ onClose, model, dataSourceId }: Props) => {
return (
<EuiFlyout onClose={onCloseFlyout}>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="m">
<EuiText size="s">
<h2>{name}</h2>
</EuiTitle>
</EuiText>
</EuiFlyoutHeader>
<EuiFlyoutBody>
<EuiDescriptionList compressed>
Expand Down
12 changes: 8 additions & 4 deletions public/components/preview_panel/nodes_table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
EuiText,
EuiDescriptionList,
EuiDescriptionListTitle,
EuiTitle,
EuiSpacer,
EuiDescriptionListDescription,
} from '@elastic/eui';
Expand Down Expand Up @@ -117,9 +116,9 @@ export function NodesTable(props: { nodes: INode[]; loading: boolean; nodesStatu
<EuiSpacer size="l" />
<EuiDescriptionList>
<EuiDescriptionListTitle>
<EuiTitle size="s">
<EuiText size="s">
<h3>Status by node</h3>
</EuiTitle>
</EuiText>
</EuiDescriptionListTitle>
<EuiDescriptionListDescription>{nodesStatus}</EuiDescriptionListDescription>
</EuiDescriptionList>
Expand All @@ -132,7 +131,12 @@ export function NodesTable(props: { nodes: INode[]; loading: boolean; nodesStatu
onChange={handleTableChange}
loading={loading}
noItemsMessage={
loading ? <EuiEmptyPrompt body={<>Loading...</>} aria-label="loading nodes" /> : undefined
loading ? (
<EuiEmptyPrompt
body={<EuiText size="s">Loading...</EuiText>}
aria-label="loading nodes"
/>
) : undefined
}
/>
</>
Expand Down
Loading