Fix long domains overflowing post-meta (#182).
In submissions and submission_listings, long domains would overflow the container and generally break everything. Fixed in the template by truncating the outputted text length and in the frontend by enforcing a maximum width on the element.
This commit is contained in:
parent
345ef7b5e7
commit
f1983da8d4
3 changed files with 11 additions and 2 deletions
|
@ -3311,6 +3311,15 @@ small, .small {
|
|||
font-size: 12px;
|
||||
width: fit-content;
|
||||
}
|
||||
.post-meta-domain {
|
||||
/* fixes very long domains overflowing submission_listing */
|
||||
display: inline-block;
|
||||
max-width: 20em;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#frontpage .posts .card .card-footer, #userpage .posts .card .card-footer, #thread .card .card-footer, #search .posts .card .card-footer {
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue