Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunjung Park <spark@gitlab.com>2020-06-08 01:24:48 +0300
committerEvan Read <eread@gitlab.com>2020-06-08 01:24:48 +0300
commit2bea26773aa4aedf0200d986bddded3f0ac77acb (patch)
treedffd51823ebfee9c762e593316cbc8aaf11f4f23 /content/index.erb
parentfef5270be09d4fa0e072cc9548237cbe11889fd5 (diff)
Update the text alignment on the left-menu
Diffstat (limited to 'content/index.erb')
-rw-r--r--content/index.erb7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/index.erb b/content/index.erb
index 2571795e..452efc5f 100644
--- a/content/index.erb
+++ b/content/index.erb
@@ -5,18 +5,17 @@ title: GitLab Documentation
<nav class="sidebar-left d-none d-md-block border-right p-0">
<div class="list-group list-group-flush pt-5">
<a href="/" class="list-group-item list-group-item-action active border-bottom-0 border-top-0 d-flex align-items-center text-decoration-none">
- <%= icon('home', nil, 'menu-icon') %> Home
- </a>
+ <%= icon('home', nil, 'menu-icon') %><span class="pl-1">Home</span></a>
<% if is_production? %>
<% @config[:products].each do |name, product| %>
<% if product[:expose] == true %>
- <a href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>" class="list-group-item list-group-item-action border-bottom-0 border-top-0"><%= icon(product[:icon], nil, 'menu-icon') %> <%= product[:short_name] %></a>
+ <a href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>" class="list-group-item list-group-item-action border-bottom-0 border-top-0 d-flex align-items-center"><%= icon(product[:icon], nil, 'menu-icon') %><span class="pl-1"><%= product[:short_name] %></span></a>
<% end %>
<% end %>
<% else %>
<% @config[:products].each do |name, product| %>
<% if Dir.exist?("#{@config[:content_dir]}/#{product[:slug]}")%>
- <a href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>" class="list-group-item list-group-item-action border-bottom-0 border-top-0"><%= icon(product[:icon], nil, 'menu-icon') %> <%= product[:short_name] %></a>
+ <a href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>" class="list-group-item list-group-item-action border-bottom-0 border-top-0 d-flex align-items-center"><%= icon(product[:icon], nil, 'menu-icon') %><span class="pl-1"><%= product[:short_name] %></span></a>
<% end %>
<% end %>
<% end %>