Skip to content

Commit

Permalink
Merge pull request #5161 from rebeccaalpert/conditions-length
Browse files Browse the repository at this point in the history
Bug 1826385: Truncate condition messages
  • Loading branch information
openshift-merge-robot committed Apr 24, 2020
2 parents 40a7ede + a825bf6 commit de6d488
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/public/components/_conditions.scss
@@ -0,0 +1,3 @@
.co-conditions__message {
@include co-line-clamp(10);
}
2 changes: 1 addition & 1 deletion frontend/public/components/conditions.tsx
Expand Up @@ -20,7 +20,7 @@ export const Conditions: React.SFC<ConditionsProps> = ({ conditions }) => {
<CamelCaseWrap value={condition.reason} />
</div>
{/* remove initial newline which appears in route messages */}
<div className="hidden-xs col-sm-5 col-md-4 co-break-word co-pre-line">
<div className="hidden-xs col-sm-5 col-md-4 co-break-word co-pre-line co-conditions__message">
{condition.message?.trim() || '-'}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions frontend/public/style.scss
Expand Up @@ -97,6 +97,7 @@
@import 'components/radio';
@import 'components/filter-toolbar';
@import 'components/autocomplete';
@import 'components/conditions';

@import 'components/dashboard/dashboards-page/cluster-dashboard/activity-card';
@import 'components/dashboard/dashboards-page/cluster-dashboard/status-card';
Expand Down

0 comments on commit de6d488

Please sign in to comment.