mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 18:40:12 -05:00
[Glitch] Fix long domain block descriptions breaking table layout
Port SCSS changes from c35376132b
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
bc4313369f
commit
ff4b95a254
@ -145,8 +145,6 @@ $small-breakpoint: 960px;
|
|||||||
|
|
||||||
thead tr,
|
thead tr,
|
||||||
tbody tr {
|
tbody tr {
|
||||||
break-after: auto;
|
|
||||||
break-inside: avoid;
|
|
||||||
border-bottom: 1px solid lighten($ui-base-color, 4%);
|
border-bottom: 1px solid lighten($ui-base-color, 4%);
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
line-height: 1.625;
|
line-height: 1.625;
|
||||||
@ -167,12 +165,25 @@ $small-breakpoint: 960px;
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
align-self: start;
|
align-self: start;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
|
word-break: break-all;
|
||||||
|
|
||||||
&.nowrap {
|
&.nowrap {
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
width: 25%;
|
width: 25%;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: ' ';
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
position: absolute;
|
||||||
|
left: 8px;
|
||||||
|
right: 8px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user