Skip to content

Commit

Permalink
Fix feature stale message not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Nov 5, 2024
1 parent af86090 commit 3c8463b
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions frontend/web/components/FeatureRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,7 @@ class TheComponent extends Component {
<Row
className={classNames(
`list-item ${readOnly ? '' : 'clickable'} ${
isCompact
? 'py-0 list-item-xs fs-small'
: this.props.widget
? 'py-1'
: 'py-2'
isCompact ? 'py-0 list-item-xs fs-small' : 'py-1'
}`,
this.props.className,
)}
Expand All @@ -269,13 +265,7 @@ class TheComponent extends Component {
<span>
{created_date ? (
<Tooltip place='right' title={<span>{name}</span>}>
{isCompact && description
? `${description}<br/>Created ${moment(
created_date,
).format('Do MMM YYYY HH:mma')}`
: `Created ${moment(created_date).format(
'Do MMM YYYY HH:mma',
)}`}
{isCompact && description ? `${description}` : null}
</Tooltip>
) : (
name
Expand Down Expand Up @@ -327,13 +317,13 @@ class TheComponent extends Component {
</TagValues>
{!!isCompact && <StaleFlagWarning projectFlag={projectFlag} />}
</Row>
{!isCompact && <StaleFlagWarning projectFlag={projectFlag} />}
{description && !isCompact && (
<div
className='list-item-subtitle mt-1'
className='list-item-subtitle'
style={{ lineHeight: '20px', width: width[4] }}
>
{description}
<StaleFlagWarning projectFlag={projectFlag} />
</div>
)}
</Flex>
Expand Down

0 comments on commit 3c8463b

Please sign in to comment.