Fleet UI: Fix policy truncation and add tooltip (#24659)

This commit is contained in:
RachelElysia
2024-12-12 09:11:26 -05:00
committed by GitHub
parent 4dd152c011
commit 95ae7c3c5f
4 changed files with 7 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
- Fix policy truncation UI bug
@@ -70,7 +70,6 @@ $base-class: "button";
border: 0;
position: relative;
cursor: pointer;
min-width: max-content;
&:focus {
outline: none;
@@ -8,6 +8,7 @@ import Button from "components/buttons/Button";
import HeaderCell from "components/TableContainer/DataTable/HeaderCell";
import ViewAllHostsLink from "components/ViewAllHostsLink";
import { IndicatorStatus } from "components/StatusIndicatorWithIcon/StatusIndicatorWithIcon";
import TooltipTruncatedText from "components/TooltipTruncatedText";
interface IHeaderProps {
column: {
@@ -82,7 +83,7 @@ const generatePolicyTableHeaders = (
onClick={onClickPolicyName}
variant="text-icon"
>
<span className={`policy-info-text`}>{name}</span>
<TooltipTruncatedText value={name} />
</Button>
);
},
@@ -23,6 +23,10 @@
tr {
.name__cell {
max-width: 0; // sets ellipsis
.truncated-tooltip {
font-weight: $regular;
}
}
.policy-link {
@@ -39,12 +43,6 @@
width: 100%; // sets ellipsis
justify-content: left;
.policy-info-text {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&::after {
content: url("../assets/images/icon-arrow-right-vibrant-blue-10x18@2x.png");
transform: scale(0.5);