mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 16:46:06 +10:00
Resolve "Scrolling horz on iOS for the secondary nav is broken" ## What does this MR do? Moves absolutely positioned `div`s outside of the scrolling container because mobile safari causes those elements to jump around on scroll. ## Are there points in the code the reviewer needs to double check? Check on a real iPhone (was only able to check in iOS simulator) ## Why was this MR needed? Mobile Safari. ## What are the relevant issue numbers? Closes #18438 ## Screenshots (if relevant)  See merge request !4869
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
.scrolling-tabs-container.sub-nav-scroll
|
|
.fade-left
|
|
= icon('arrow-left')
|
|
.fade-right
|
|
= icon('arrow-right')
|
|
.nav-links.sub-nav.scrolling-tabs
|
|
%ul{ class: (container_class) }
|
|
= nav_link(controller: %w(tree blob blame edit_tree new_tree find_file)) do
|
|
= link_to project_files_path(@project) do
|
|
Files
|
|
|
|
= nav_link(controller: [:commit, :commits]) do
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, current_ref) do
|
|
Commits
|
|
|
|
= nav_link(controller: %w(network)) do
|
|
= link_to namespace_project_network_path(@project.namespace, @project, current_ref) do
|
|
Network
|
|
|
|
= nav_link(controller: :compare) do
|
|
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: current_ref) do
|
|
Compare
|
|
|
|
= nav_link(html_options: {class: branches_tab_class}) do
|
|
= link_to namespace_project_branches_path(@project.namespace, @project) do
|
|
Branches
|
|
|
|
= nav_link(controller: [:tags, :releases]) do
|
|
= link_to namespace_project_tags_path(@project.namespace, @project) do
|
|
Tags
|