[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit a1326f6cd809d63ca3ee2d1bb44522e61643f4dc
Author: HackerNCoder <hackerncoder@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>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits