[tor-commits] [community/master] I #226: Uncrowd on smaller screens

gus at torproject.org gus at torproject.org
Tue Aug 31 20:56:25 UTC 2021


commit a1326f6cd809d63ca3ee2d1bb44522e61643f4dc
Author: HackerNCoder <hackerncoder at encryptionin.space>
Date:   Tue Aug 31 20:28:02 2021 +0000

    I #226: Uncrowd on smaller screens
---
 templates/community-resources.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/templates/community-resources.html b/templates/community-resources.html
index 8ce515d..3158b2f 100644
--- a/templates/community-resources.html
+++ b/templates/community-resources.html
@@ -5,7 +5,7 @@
     <div class="row">
 
         {% for id, item in bag('community-training-materials').items() %}
-        <div class="col-md-3 col-sm-12 col-xl-3 my-3">
+        <div class="col-md-6 col-sm-12 col-xl-3 my-3">
 
           <div class="card h-100">
             <div class="card-header bg-white border-0">
@@ -13,15 +13,15 @@
                   <a href="{{ item.link }}"><img src="{{ item.cover }}" class="img-fluid" alt="{{ item.name }}"></a>
                 </picture>
             </div>
-            <div class="card-body">
+            <div class="card-body d-flex flex-column">
               <h5 class="card-title human-name">{{ item.name }}</h5>
               <p>by {{ item.author }}</p>
               <p>In {{ item.languages }}</p>
               <p>{{ item.description }}</p>
               {% if item.author=='Tor Project' %}
-              	<a href="{{ item.link }}" title="{{ item.name }}" class="btn btn-primary">Check this resource</a>
+              	<a href="{{ item.link }}" title="{{ item.name }}" class="btn btn-primary mt-auto">Check this resource</a>
               {% else %}
-                <a href="{{ item.link }}" title="{{ item.name }}" class="btn btn-primary">Check this resource</a>
+                <a href="{{ item.link }}" title="{{ item.name }}" class="btn btn-primary mt-auto">Check this resource</a>
               {% endif %}
             </div>
           </div>





More information about the tor-commits mailing list