Skip to content

Commit f65828b

Browse files
committed
feat(reading): can refresh a reading list no mobile easily
No more need to scroll to the top of the page or to open the reading list selector. Close #354
1 parent 76239f5 commit f65828b

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Allow you to add a custom script.
88
- Can fetch feed without an explicit full site URL.
99
- Can force feeds to refresh in the admin.
10+
- Can refresh a reading list no mobile easily, without going to the top of the page or opening the reading list selector.
1011

1112
## 24.12.4
1213

Diff for: legadilo/static/css/base.css

+8
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ html {
9090
max-height 1s ease-out;
9191
}
9292

93+
.refresh-btn {
94+
right: 0.5rem;
95+
bottom: 0.5rem;
96+
width: max-content;
97+
margin-left: auto;
98+
display: block;
99+
}
100+
93101
@media (width >= 768px) {
94102
.article-card-container {
95103
max-height: 500px;

Diff for: legadilo/templates/reading/list_of_articles.html

+4
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,8 @@ <h2 class="fs-6 col-6 col-md-2 align-middle d-flex align-items-center px-0 mx-0"
164164
value="{{ displayed_reading_list.id }}" />
165165
<input type="hidden" name="from_url" value="{{ from_url }}" />
166166
</form>
167+
<a class="btn btn-outline-primary sticky-bottom refresh-btn bg-secondary-subtle"
168+
aria-label="{% translate 'Refresh current reading list' %}"
169+
role="button"
170+
href="{{ request.get_full_path }}">{% include "core/partials/bs-icons/refetch.html" %}</a>
167171
{% endblock content %}

Diff for: legadilo/users/tests/snapshots/test_registration/test_registration_success/page_response.html

+9
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,15 @@ <h1>Unread</h1>
435435
value="2" />
436436
<input type="hidden" name="from_url" value="/reading/" />
437437
</form>
438+
<a class="btn btn-outline-primary sticky-bottom refresh-btn bg-secondary-subtle"
439+
aria-label="Refresh current reading list"
440+
role="button"
441+
href="/reading/">
442+
443+
<img class="bi"
444+
src="/static/images/bs/arrow-clockwise.svg"
445+
alt="Refetch" />
446+
</a>
438447

439448
</div>
440449
</div>

0 commit comments

Comments
 (0)