diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 85a9b976f..cc5cbf7f6 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -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; diff --git a/files/templates/submission.html b/files/templates/submission.html index 7fa49051a..a5e55cf65 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -192,7 +192,7 @@ {% endif %}  {{p.age_string}} - ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.domain %}{{p.domain}}{% else %}text post{% endif %}) + ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.domain %}{{p.domain|truncate(35, True)}}{% else %}text post{% endif %}) {% if p.edited_utc %}   Edited {{p.edited_string}} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index a67db9068..f6148b4a9 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -230,7 +230,7 @@ {% endif %}   - ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.domain %}{{p.domain}}{% else %}text post{% endif %}) + ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.domain %}{{p.domain|truncate(35, True)}}{% else %}text post{% endif %}) {% if p.edited_utc %}   Edited {{p.edited_string}} {% endif %}