fleet/frontend/components/TableContainer/DataTable/TruncatedTextCell/_styles.scss

43 lines
845 B
SCSS

.truncated-cell {
.data-table__truncated-text {
&--cell {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 101%;
}
.truncated {
display: inline-block;
max-width: 100%;
// Removes secondary unstyled tooltip created by browser
&::after {
content: "";
display: block;
}
}
}
// Responsive design overrides react-tooltip width that overflows off screen
.truncated-tooltip {
max-width: 300px;
word-break: break-all;
overflow-wrap: break-word;
display: block;
white-space: pre-wrap;
}
@media (min-width: $break-990) {
.truncated-tooltip {
max-width: 400px;
}
}
@media (min-width: $break-1400) {
.truncated-tooltip {
max-width: 800px;
}
}
}