Browse Source

Fix overflow of long domain names on topic listing

merge-requests/64/head
Deimos 6 years ago
parent
commit
8f151232cb
  1. 5
      tildes/scss/modules/_topic.scss
  2. 6
      tildes/tildes/templates/macros/topics.jinja2

5
tildes/scss/modules/_topic.scss

@ -212,6 +212,11 @@
white-space: nowrap; white-space: nowrap;
} }
.topic-info-source {
overflow: hidden;
text-overflow: ellipsis;
}
.topic-full { .topic-full {
.topic-voting { .topic-voting {
float: right; float: right;

6
tildes/tildes/templates/macros/topics.jinja2

@ -79,11 +79,13 @@
</a> </a>
</div> </div>
<div class="topic-info-source"
{% if topic.is_user_treated_as_source %} {% if topic.is_user_treated_as_source %}
<div aria-label="Posted by">{{ username_linked(topic.user.username) }}</div>
aria-label="Posted by">{{ username_linked(topic.user.username) }}
{% else %} {% else %}
<div aria-label="Link domain">{{ topic.link_domain }}</div>
aria-label="Link domain">{{ topic.link_domain }}
{% endif %} {% endif %}
</div>
<div aria-label="Post time">{{ adaptive_date_responsive(topic.created_time, precision=1) }}</div> <div aria-label="Post time">{{ adaptive_date_responsive(topic.created_time, precision=1) }}</div>
</footer> </footer>

Loading…
Cancel
Save