diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 0fd2880269..f9d29fea33 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -3528,6 +3528,15 @@ small, .small { color: var(--white); text-decoration: none; } +.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 50f5d0fe2f..91a58dad62 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -686,7 +686,7 @@ {% endif %} {% endif %}  {{p.age_string}} - ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{{p.domain}}{% else %}text post{% endif %}) + ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{{p.domain|truncate(50, 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 2940ae6b8d..a1fe10e02c 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -223,7 +223,7 @@ {% endif %}  {{p.age_string}}   - ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{{p.domain}}{% else %}text post{% endif %}) + ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{{p.domain|truncate(50, True)}}{% else %}text post{% endif %}) {% if p.edited_utc %}   Edited {{p.edited_string}} {% endif %} diff --git a/files/templates/util/assetcache.html b/files/templates/util/assetcache.html index 08b835f8db..f61d8acd4e 100644 --- a/files/templates/util/assetcache.html +++ b/files/templates/util/assetcache.html @@ -1,6 +1,6 @@ {%- set CACHE_VER = { - 'css/main.css': 454, + 'css/main.css': 455, 'css/catalog.css': 2, 'css/4chan.css': 61,