Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Let landing-page store badges wrap on narrow screens

Cursor Agentd203cc0b5d15
diff --git a/wger/core/tests/test_app_store_links.py b/wger/core/tests/test_app_store_links.py
index 5dda91232..9e15fef3a 100644
--- a/wger/core/tests/test_app_store_links.py
+++ b/wger/core/tests/test_app_store_links.py
@@ -54,6 +54,7 @@ class AppStoreLinksTestCase(WgerTestCase):
for store in self.stores + ('f-droid.org',):
self.assertContains(response, store)
+ self.assertContains(response, 'class="d-flex flex-wrap gap-2 app-store-badges"')
@override_settings(WGER_SHOW_APP_STORE_LINKS=False)
@mock.patch('wger.software.views.requests.get')
@@ -63,3 +64,4 @@ class AppStoreLinksTestCase(WgerTestCase):
for store in self.stores + ('f-droid.org',):
self.assertNotContains(response, store)
+ self.assertNotContains(response, 'app-store-badges')
diff --git a/wger/software/templates/features.html b/wger/software/templates/features.html
index 0c39d21d2..c80971983 100644
--- a/wger/software/templates/features.html
+++ b/wger/software/templates/features.html
@@ -580,7 +580,7 @@
</div>
</div>
- <div class="d-flex justify-content-between py-3">
+ <div class="d-flex flex-wrap justify-content-between align-items-center gap-3 py-3">
<div class="btn-group dropup">
<button class="btn btn-outline-light dropdown-toggle"
type="button"
@@ -621,34 +621,36 @@
</div>
{% if show_app_store_links %}
- <a href="https://play.google.com/store/apps/details?id=de.wger.flutter">
- <img
- src="{% static 'images/logos/play-store/badge.svg' %}"
- alt="google play logo"
- height="55"
- />
- </a>
- <a href="https://apps.apple.com/us/app/wger-workout-manager/id6502226792">
- <img
- src="{% static 'images/logos/app-store/black.svg' %}"
- alt="app store logo"
- height="55"
- />
- </a>
- <a href="https://flathub.org/apps/de.wger.flutter">
- <img
- src="{% static 'images/logos/flathub/black.svg' %}"
- alt="flathub logo"
- height="55"
- />
- </a>
- <a href="https://f-droid.org/de/packages/de.wger.flutter/">
- <img
- src="{% static 'images/logos/fdroid/get-it-on.svg' %}"
- alt="fdroid logo"
- height="55"
- />
- </a>
+ <div class="d-flex flex-wrap gap-2 app-store-badges">
+ <a href="https://play.google.com/store/apps/details?id=de.wger.flutter">
+ <img
+ src="{% static 'images/logos/play-store/badge.svg' %}"
+ alt="google play logo"
+ height="55"
+ />
+ </a>
+ <a href="https://apps.apple.com/us/app/wger-workout-manager/id6502226792">
+ <img
+ src="{% static 'images/logos/app-store/black.svg' %}"
+ alt="app store logo"
+ height="55"
+ />
+ </a>
+ <a href="https://flathub.org/apps/de.wger.flutter">
+ <img
+ src="{% static 'images/logos/flathub/black.svg' %}"
+ alt="flathub logo"
+ height="55"
+ />
+ </a>
+ <a href="https://f-droid.org/de/packages/de.wger.flutter/">
+ <img
+ src="{% static 'images/logos/fdroid/get-it-on.svg' %}"
+ alt="fdroid logo"
+ height="55"
+ />
+ </a>
+ </div>
{% endif %}
</div>
</div>