aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared_searches
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-14 18:05:40 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-14 18:05:40 +0100
commit56a60d48f6cc11fb512e249f4bf32bf69e902924 (patch)
tree32b528059df52dfe0c93a83ddb27b88560b6b993 /app/views/shared_searches
parenta2a494c73a22151a83b8f2f03c8efab77f1fafe2 (diff)
downloadoperum-56a60d48f6cc11fb512e249f4bf32bf69e902924.tar.gz
operum-56a60d48f6cc11fb512e249f4bf32bf69e902924.zip
Make the UI a bit more consistent
- Titles have been unified by using the same HTML tag. - Centered views have been improved for big screens. - Added more views that are to be centered. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views/shared_searches')
-rw-r--r--app/views/shared_searches/index.html.erb24
1 files changed, 15 insertions, 9 deletions
diff --git a/app/views/shared_searches/index.html.erb b/app/views/shared_searches/index.html.erb
index 9a145f6..a17537c 100644
--- a/app/views/shared_searches/index.html.erb
+++ b/app/views/shared_searches/index.html.erb
@@ -1,13 +1,19 @@
-<h3><%= I18n.t('searches.shared.title') %></h3>
+<div class="center-contents">
+ <div></div>
+ <div>
+ <h3><%= I18n.t('searches.shared.title') %></h3>
-<% if @searches.empty? %>
- <div><span><%= I18n.t('searches.shared.none') %>.</span></div>
-<% else %>
- <div id="shared-searches-list">
- <% @searches.each do |s| %>
- <div>
- <%= link_to s.name, search_shared_path(s) %>
+ <% if @searches.empty? %>
+ <div><span><%= I18n.t('searches.shared.none') %>.</span></div>
+ <% else %>
+ <div id="shared-searches-list">
+ <% @searches.each do |s| %>
+ <div>
+ <%= link_to s.name, search_shared_path(s) %>
+ </div>
+ <% end %>
</div>
<% end %>
</div>
-<% end %>
+ <div></div>
+</div>