]> git.openstreetmap.org Git - rails.git/commitdiff
Improve alignment of text and images on welcome page
authorHidde Wieringa <hidde@hiddewieringa.nl>
Tue, 14 May 2024 18:21:41 +0000 (20:21 +0200)
committerTom Hughes <tom@compton.nu>
Tue, 14 May 2024 23:18:38 +0000 (00:18 +0100)
app/views/site/_any_questions.html.erb
app/views/site/welcome.html.erb

index b330d8035e3b25fcc5b7e52d1af6b84dec47b9d4..5098a1eee75790c98307037aefcbf1441c650599 100644 (file)
@@ -1,4 +1,6 @@
   <h2><%= t ".title" %></h2>
+  <div class='clearfix'>
   <span class='sprite small term question float-start'></span>
   <p><%= t ".paragraph_1_html", :help_link => link_to(t(".get_help_here"), help_path),
                                 :welcome_mat_link => link_to(t(".welcome_mat"), t(".welcome_mat_url")) %></p>
+  </div>
index f8f339284f222246ee303fae979dcdee80fc1689..eacccf5789f28d4214433be930847bd55f0213c1 100644 (file)
 
 <p><%= t ".basic_terms.paragraph_1" %></p>
 
-<div class='clearfix'>
-  <div class='clearfix'>
-    <span class='sprite small term editor float-start'></span>
-    <p><%= t ".basic_terms.an_editor_html", :editor => tag.strong(t(".basic_terms.editor")) %></p>
+<div>
+  <div class='align-middle mb-2'>
+    <span class='sprite small term editor'></span>
+    <span><%= t ".basic_terms.an_editor_html", :editor => tag.strong(t(".basic_terms.editor")) %></span>
   </div>
-  <div class='clearfix'>
-    <span class='sprite small term node float-start'></span>
-    <p><%= t ".basic_terms.a_node_html", :node => tag.strong(t(".basic_terms.node")) %></p>
+  <div class='align-middle mb-2'>
+    <span class='sprite small term node'></span>
+    <span><%= t ".basic_terms.a_node_html", :node => tag.strong(t(".basic_terms.node")) %></span>
   </div>
-  <div class='clearfix'>
-    <span class='sprite small term way float-start'></span>
-    <p><%= t ".basic_terms.a_way_html", :way => tag.strong(t(".basic_terms.way")) %></p>
+  <div class='align-middle mb-2'>
+    <span class='sprite small term way'></span>
+    <span><%= t ".basic_terms.a_way_html", :way => tag.strong(t(".basic_terms.way")) %></span>
   </div>
-  <div class='clearfix'>
-    <span class='sprite small term tag float-start'></span>
-    <p><%= t ".basic_terms.a_tag_html", :tag => tag.strong(t(".basic_terms.tag")) %></p>
+  <div class='align-middle mb-2'>
+    <span class='sprite small term tag'></span>
+    <span><%= t ".basic_terms.a_tag_html", :tag => tag.strong(t(".basic_terms.tag")) %></span>
   </div>
 </div>