fleet/frontend/components/TooltipTruncatedText/_styles.scss

20 lines
619 B
SCSS
Raw Normal View History

.tooltip-truncated-text {
// we want this component to take up the full width of its parent container.
// This means the width where the truncation occurs must be defined in the
// parent that is using this component. This allows for maximum flexibility
// in different use cases.
max-width: 100%;
// we have to reach into the tooltip wrapper compoment and set the width to 100%
// for the tooltip element to be the same width as the parent
.component__tooltip-wrapper__element {
width: 100%;
}
&__text-value {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}