Skip to content

Commit

Permalink
Additional resolutions from design review
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye committed Dec 17, 2024
1 parent c5f677c commit 36264b6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/table/TableRowTitleDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type TableRowTitleDescriptionProps = {

const TableRowTitleDescription: React.FC<TableRowTitleDescriptionProps> = ({
title,
boldTitle = true,
boldTitle = false,
titleIcon,
description,
resource,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/concepts/dashboard/DashboardPopupIconButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Button, ButtonProps, Icon } from '@patternfly/react-core';
import { Button, ButtonProps } from '@patternfly/react-core';

type DashboardPopupIconButtonProps = Omit<ButtonProps, 'variant' | 'isInline'> & {
icon: React.ReactNode;
Expand All @@ -12,7 +12,7 @@ const DashboardPopupIconButton = ({
icon,
...props
}: DashboardPopupIconButtonProps): React.JSX.Element => (
<Button icon={<Icon isInline>{icon}</Icon>} variant="plain" isInline {...props} />
<Button icon={icon} variant="plain" isInline {...props} />
);

export default DashboardPopupIconButton;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DWSectionCard: React.FC<{
<Card isFullHeight>
<CardHeader>
<CardTitle>
<Flex gap={{ default: 'gapMd' }}>
<Flex gap={{ default: 'gapSm' }}>
{title} {helpTooltip ? <DashboardHelpTooltip content={helpTooltip} /> : null}
</Flex>
</CardTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const DWStatusOverviewDonutChart: React.FC = () => {
);
}
return (
<div style={{ height: '250px', minWidth: '620px' }}>
// maxWidth matches what the chart's svg width value would be without the default "width: 100%" coming from PF Charts
<div style={{ maxWidth: '530px' }}>
<ChartDonut
ariaDesc="Distributed workload status overview"
ariaTitle="Status overview donut chart"
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/storageClasses/StorageClassesTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const StorageClassesTableRow: React.FC<StorageClassesTableRowProps> = ({
</Td>

<Td dataLabel={ColumnLabel.OpenshiftStorageClass}>
<Flex spaceItems={{ default: 'spaceItemsSm' }} alignItems={{ default: 'alignItemsCenter' }}>
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
<FlexItem>{metadata.name}</FlexItem>

<FlexItem>
Expand All @@ -191,6 +191,7 @@ export const StorageClassesTableRow: React.FC<StorageClassesTableRowProps> = ({
<DashboardPopupIconButton
icon={<OutlinedQuestionCircleIcon />}
aria-label="Storage class info popover"
hasNoPadding
/>
</Popover>
</FlexItem>
Expand Down

0 comments on commit 36264b6

Please sign in to comment.