Skip to content

Commit

Permalink
Apply correct font size to resource name within activity dashboard card
Browse files Browse the repository at this point in the history
  • Loading branch information
sg00dwin committed Feb 17, 2020
1 parent 234ec55 commit 4a6f35d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '~@patternfly/patternfly/sass-utilities/colors';
@import '../../../styles/skeleton-screen';
@import '../../../../../../public/style/vars';

.co-activity-card__body {
max-height: 30rem;
Expand Down Expand Up @@ -106,6 +107,7 @@
white-space: nowrap;

.co-resource-item__resource-name {
font-size: $font-size-base;
text-overflow: ellipsis;
overflow: hidden;
}
Expand Down
4 changes: 0 additions & 4 deletions frontend/public/components/_resource.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,7 @@
white-space: nowrap;
}
&__resource-name {
font-size: $font-size-base;
min-width: 0; // required so co-break-word works
&--lg {
font-size: var(--pf-global--FontSize--xl);
}
}
&__resource-status {
padding-left: 8px;
Expand Down
1 change: 1 addition & 0 deletions frontend/public/components/overview/_overview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ $overview-sidebar-width: 550px;
padding-top: 5px;

.co-m-pane__heading {
font-size: var(--pf-global--FontSize--xl);
margin: 0 20px var(--pf-global--spacer--md);
}

Expand Down
7 changes: 2 additions & 5 deletions frontend/public/components/utils/headings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ export const PageHeading = connectToModel((props: PageHeadingProps) => {
) : (
<div className="co-m-pane__name co-resource-item">
{kind && <ResourceIcon kind={kind} className="co-m-resource-icon--lg" />}{' '}
<span
data-test-id="resource-title"
className="co-resource-item__resource-name co-resource-item__resource-name--lg"
>
<span data-test-id="resource-title" className="co-resource-item__resource-name">
{resourceTitle}
</span>
{resourceStatus && (
Expand Down Expand Up @@ -207,7 +204,7 @@ export const ResourceOverviewHeading: React.SFC<ResourceOverviewHeadingProps> =
resource.metadata.name,
resource.metadata.namespace,
)}
className="co-resource-item__resource-name co-resource-item__resource-name--lg"
className="co-resource-item__resource-name"
>
{resource.metadata.name}
</Link>
Expand Down

0 comments on commit 4a6f35d

Please sign in to comment.