Skip to content

Commit

Permalink
Remove boldTitle prop and resolve code editor cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye committed Dec 19, 2024
1 parent f1af616 commit e98d837
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions frontend/src/components/table/TableRowTitleDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import TruncatedText from '~/components/TruncatedText';

type TableRowTitleDescriptionProps = {
title: React.ReactNode;
boldTitle?: boolean;
titleIcon?: React.ReactNode;
resource?: K8sResourceCommon;
subtitle?: React.ReactNode;
Expand All @@ -19,7 +18,6 @@ type TableRowTitleDescriptionProps = {

const TableRowTitleDescription: React.FC<TableRowTitleDescriptionProps> = ({
title,
boldTitle = false,
titleIcon,
description,
resource,
Expand Down Expand Up @@ -50,7 +48,7 @@ const TableRowTitleDescription: React.FC<TableRowTitleDescriptionProps> = ({

return (
<div>
<div data-testid="table-row-title" className={boldTitle ? 'pf-v6-u-font-weight-bold' : ''}>
<div data-testid="table-row-title">
{resource ? (
<ResourceNameTooltip resource={resource} wrap={wrapResourceTitle}>
{title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const PipelineRunDetailsTabs: React.FC<PipelineRunDetailsTabsProps> = ({
hasBodyWrapper={false}
isFilled
padding={{ default: 'noPadding' }}
style={{ flexBasis: 0, overflowY: 'hidden' }}
style={{ flexBasis: 0 }}
>
<Flex
direction={{ default: 'column' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const ExperimentTableRow: React.FC<ExperimentTableRowProps> = ({
<CheckboxTd id={experiment.experiment_id} isChecked={isChecked} onToggle={onToggleCheck} />
<Td dataLabel="Experiment">
<TableRowTitleDescription
boldTitle={false}
title={
<Link
to={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const ConnectionTypesTableRow: React.FC<ConnectionTypesTableRowProps> = ({
<Tr>
<Td dataLabel={connectionTypeColumns[0].label}>
<TableRowTitleDescription
boldTitle={false}
title={<Truncate content={getDisplayNameFromK8sResource(obj)} />}
description={getDescriptionFromK8sResource(obj)}
truncateDescriptionLines={2}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const ManageConnectionTypeFieldsTableRow: React.FC<Props> = ({
/>
<Td dataLabel={columns[0].label} data-testid="field-name">
<TableRowTitleDescription
boldTitle={false}
title={
<Flex gap={{ default: 'gapSm' }} flexWrap={{ default: 'nowrap' }}>
<FlexItem>
Expand Down Expand Up @@ -132,7 +131,6 @@ const ManageConnectionTypeFieldsTableRow: React.FC<Props> = ({
/>
<Td dataLabel={columns[0].label} data-testid="field-name" visibility={columns[0].visibility}>
<TableRowTitleDescription
boldTitle={false}
title={<Truncate content={row.name} />}
description={row.description}
truncateDescriptionLines={2}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const ConnectionsTableRow: React.FC<ConnectionsTableRowProps> = ({
<Td dataLabel="Name">
<TableRowTitleDescription
title={<Truncate content={getDisplayNameFromK8sResource(obj)} />}
boldTitle={false}
titleIcon={
showWarningIcon ? (
<Icon status="warning" className="pf-v6-u-pl-lg">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const ProjectTableRow: React.FC<ProjectTableRowProps> = ({
<Tr isControlRow>
<Td dataLabel="Name">
<TableRowTitleDescription
boldTitle={false}
title={
<ResourceNameTooltip resource={project}>
<ProjectLink project={project} />
Expand Down

0 comments on commit e98d837

Please sign in to comment.