Skip to content

Commit 2a810cd

Browse files
fix(ui): fix changes page text wrapping and paginator styling (#17368)
* fix(ui): fix changes page text wrapping and paginator styling * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 04d5ede commit 2a810cd

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

weblate/static/styles/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ form + .login-label {
658658
background-color: #e5f0f2;
659659
padding: 8px 10px;
660660
overflow-wrap: anywhere;
661+
white-space: normal;
661662
}
662663
.comment-content blockquote {
663664
border-left: 5px solid #ddd;

weblate/templates/paginator.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,36 @@
22

33
{% if page_obj.paginator.num_pages > 1 %}
44
<ul class="pagination">
5-
<li {% if page_obj.number == 1 %}class="disabled"{% endif %}>
5+
<li class="page-item{% if page_obj.number == 1 %} disabled{% endif %}">
66
<a href="?page=1&amp;limit={{ page_obj.paginator.per_page }}{% if page_obj.paginator.sort_by %}&amp;sort_by={{ page_obj.paginator.sort_by }}{% endif %}{% if query_string %}&amp;{{ query_string }}{% endif %}{% if anchor %}#{{ anchor }}{% endif %}"
7-
class="green">
7+
class="page-link green">
88
{% if LANGUAGE_BIDI %}
99
{% icon "page-last.svg" %}
1010
{% else %}
1111
{% icon "page-first.svg" %}
1212
{% endif %}
1313
</a>
1414
</li>
15-
<li {% if not page_obj.has_previous %}class="disabled"{% endif %}>
15+
<li class="page-item{% if not page_obj.has_previous %} disabled{% endif %}">
1616
<a
1717
{% if page_obj.has_previous %}
1818
rel="prev"
1919
{# djlint:off #}
2020
href="?page={{ page_obj.previous_page_number }}&amp;limit={{ page_obj.paginator.per_page }}{% if page_obj.paginator.sort_by %}&amp;sort_by={{ page_obj.paginator.sort_by }}{% endif %}{% if query_string %}&amp;{{ query_string }}{% endif %}{% if anchor %}#{{ anchor }}{% endif %}"
2121
{# djlint:on #}
2222
{% endif %}
23-
class="green">
23+
class="page-link green">
2424
{% if LANGUAGE_BIDI %}
2525
{% icon "page-next.svg" %}
2626
{% else %}
2727
{% icon "page-previous.svg" %}
2828
{% endif %}
2929
</a>
3030
</li>
31-
<li>
32-
<a class="position-input" title="{% translate "Click to edit position" %}">
31+
<li class="page-item">
32+
<a class="page-link position-input"
33+
title="{% translate "Click to edit position" %}"
34+
href="#">
3335
{% blocktranslate with position=page_obj.number total=page_obj.paginator.num_pages %}{{ position }} / {{ total }}{% endblocktranslate %}
3436
</a>
3537
<a class="position-input-editable" title="{% translate "Go to position" %}">
@@ -64,25 +66,25 @@
6466
{% if not paginator_form %}</form>{% endif %}
6567
</a>
6668
</li>
67-
<li {% if not page_obj.has_next %}class="disabled"{% endif %}>
69+
<li class="page-item{% if not page_obj.has_next %} disabled{% endif %}">
6870
<a
6971
{% if page_obj.has_next %}
7072
rel="next"
7173
{# djlint:off #}
7274
href="?page={{ page_obj.next_page_number }}&amp;limit={{ page_obj.paginator.per_page }}{% if page_obj.paginator.sort_by %}&amp;sort_by={{ page_obj.paginator.sort_by }}{% endif %}{% if query_string %}&amp;{{ query_string }}{% endif %}{% if anchor %}#{{ anchor }}{% endif %}"
7375
{# djlint:on #}
7476
{% endif %}
75-
class="green">
77+
class="page-link green">
7678
{% if not LANGUAGE_BIDI %}
7779
{% icon "page-next.svg" %}
7880
{% else %}
7981
{% icon "page-previous.svg" %}
8082
{% endif %}
8183
</a>
8284
</li>
83-
<li {% if page_obj.paginator.num_pages == page_obj.number %}class="disabled"{% endif %}>
85+
<li class="page-item{% if page_obj.paginator.num_pages == page_obj.number %} disabled{% endif %}">
8486
<a href="?page={{ page_obj.paginator.num_pages }}&amp;limit={{ page_obj.paginator.per_page }}{% if page_obj.paginator.sort_by %}&amp;sort_by={{ page_obj.paginator.sort_by }}{% endif %}{% if query_string %}&amp;{{ query_string }}{% endif %}{% if anchor %}#{{ anchor }}{% endif %}"
85-
class="green">
87+
class="page-link green">
8688
{% if not LANGUAGE_BIDI %}
8789
{% icon "page-last.svg" %}
8890
{% else %}

weblate/templates/trans/change_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</li>
1515
{% endif %}
1616

17-
<div class="btn-group float-end btn-group-settings" role="group">
17+
<div class="btn-group ms-auto btn-group-settings" role="group">
1818
{% if debug %}
1919
{% if path_object %}
2020
<a href="{% url 'changes' path=path_object.get_url_path %}?{{ query_string }}&amp;digest=1"

0 commit comments

Comments
 (0)