2024-07-11 13:44:09 +00:00
|
|
|
.tooltip-truncated-text {
|
2025-11-06 14:40:46 +00:00
|
|
|
// 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%;
|
2024-07-11 13:44:09 +00:00
|
|
|
|
2025-11-06 14:40:46 +00:00
|
|
|
// 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%;
|
2024-07-11 13:44:09 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-06 14:40:46 +00:00
|
|
|
&__text-value {
|
2024-07-11 13:44:09 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
}
|