Skip to content

Commit

Permalink
🐛 Reallocate col spacing & add overflow style for status
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Bolton <[email protected]>
  • Loading branch information
ibolton336 committed Mar 8, 2024
1 parent 3e3d690 commit ae9d6c3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
5 changes: 4 additions & 1 deletion client/src/app/components/IconedStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./iconed-status.css";
import React from "react";
import { Flex, FlexItem, Icon, Tooltip } from "@patternfly/react-core";
import { useTranslation } from "react-i18next";
Expand Down Expand Up @@ -175,7 +176,9 @@ export const IconedStatus: React.FC<IIconedStatusProps> = ({
</Icon>
</IconWithOptionalTooltip>
</FlexItem>
<FlexItem>{label || presetProps?.label}</FlexItem>
<FlexItem className="status-label">
{label || presetProps?.label}
</FlexItem>
{(preset === "InheritedReviews" ||
preset === "InheritedAssessments" ||
preset === "InProgressInheritedAssessments" ||
Expand Down
4 changes: 4 additions & 0 deletions client/src/app/components/iconed-status.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.status-label {
overflow: hidden;
text-overflow: ellipsis;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports[`StatusIcon Renders without crashing 1`] = `
</span>
</div>
<div
class=""
class="status-label"
>
terms.notStarted
</div>
Expand All @@ -47,7 +47,7 @@ exports[`StatusIcon Renders without crashing 1`] = `
</span>
</div>
<div
class=""
class="status-label"
>
terms.notStarted
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,6 @@ exports[`Test snapshot 1`] = `
</div>
</div>
</div>
<div
class="pf-v5-c-toolbar__expandable-content"
id="pf-random-id-0-expandable-content-0"
>
<div
class="pf-v5-c-toolbar__group"
/>
</div>
</div>
<div
class="pf-v5-c-toolbar__content pf-m-hidden"
Expand Down Expand Up @@ -230,14 +222,6 @@ exports[`Test snapshot 1`] = `
</div>
</div>
</div>
<div
class="pf-v5-c-toolbar__expandable-content"
id="pf-random-id-0-expandable-content-0"
>
<div
class="pf-v5-c-toolbar__group"
/>
</div>
</div>
<div
class="pf-v5-c-toolbar__content pf-m-hidden"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ export const ApplicationsTable: React.FC = () => {
{application.name}
</Td>
<Td
width={15}
width={10}
modifier="truncate"
{...getTdProps({ columnKey: "businessService" })}
>
Expand Down Expand Up @@ -918,7 +918,7 @@ export const ApplicationsTable: React.FC = () => {
/>
</Td>
<Td
width={10}
width={15}
modifier="truncate"
{...getTdProps({ columnKey: "analysis" })}
>
Expand Down

0 comments on commit ae9d6c3

Please sign in to comment.