changeset 15a668a8f0fc in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset&node=15a668a8f0fc
description:
        Use vertical button group for provider filters on small screen
diffstat:

 templates/service_providers.html |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 1e93326787ae -r 15a668a8f0fc templates/service_providers.html
--- a/templates/service_providers.html  Sun Nov 20 02:18:30 2022 +0100
+++ b/templates/service_providers.html  Sat Nov 26 23:54:28 2022 +0100
@@ -19,8 +19,9 @@
 
 <section class="section">
     <div class="container">
-        <div class="row mb-4">
-            <div class="btn-group col-7 mx-auto">
+        {% for display, group in [('d-none d-sm-flex', 'btn-group'), ('d-flex 
d-sm-none', 'btn-group-vertical')] %}
+        <div class="row mb-4 {{ display }}">
+            <div class="{{ group }} col-md-7 mx-auto">
                 <a type="button" class="btn btn-primary {% if consulting 
%}active{% endif %}" {% if consulting %}aria-pressed="true"{% endif %} href="{{ 
url_for_self(consulting=(not consulting)|int) }}">
                     {% if consulting %}
                     <span class="material-icons">check</span>
@@ -47,6 +48,7 @@
                 </a>
             </div>
         </div>
+        {% endfor %}
         <div class="row row-cols-1 row-cols-md-2 row-cols-xl-4">
             {% for provider in providers %}
             {% with loading = 'lazy' if loop.index > 1 else 'eager' %}

Reply via email to