diff options
author | Sunjung Park <spark@gitlab.com> | 2020-06-08 01:24:48 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2020-06-08 01:24:48 +0300 |
commit | 2bea26773aa4aedf0200d986bddded3f0ac77acb (patch) | |
tree | dffd51823ebfee9c762e593316cbc8aaf11f4f23 /content/index.erb | |
parent | fef5270be09d4fa0e072cc9548237cbe11889fd5 (diff) |
Update the text alignment on the left-menu
Diffstat (limited to 'content/index.erb')
-rw-r--r-- | content/index.erb | 7 |
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 %> |