mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 14:58:33 +00:00
## Improve breakpoint variables to be useful "sm", "md", etc. instead of the pixel widths they are set to Also made sure all media queries are using these variables instead of hard-coded values. See @lukeheath's previous to-do in `frontend > styles > var > breakpoints.scss` --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
57 lines
1.1 KiB
SCSS
57 lines
1.1 KiB
SCSS
.truncated-cell {
|
|
.text-muted {
|
|
color: $ui-fleet-black-50;
|
|
}
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
|
|
// allows for the tooltip text to break on a word instead of a character
|
|
&.tooltip-break-on-word {
|
|
.truncated-tooltip {
|
|
word-break: normal;
|
|
}
|
|
}
|
|
|
|
// 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;
|
|
|
|
.safari-hack {
|
|
height: 0px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: $break-md) {
|
|
.truncated-tooltip {
|
|
max-width: 400px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: $break-lg) {
|
|
.truncated-tooltip {
|
|
max-width: 800px;
|
|
}
|
|
}
|
|
}
|