Fix task secondary navigation on small screens [SCI-9305]

This commit is contained in:
Anton 2023-09-20 12:30:15 +02:00
parent b84ff233f2
commit d46ee2adf6
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<div id="taskSecondaryMenu" class="sticky-header-element bg-sn-white border-b border-solid border-0 border-sn-sleepy-grey rounded-t px-4 py-2 top-0 sticky z-[251]">
<div class="flex items-center gap-4">
<div id="taskSecondaryMenu" class="sticky-header-element bg-sn-white border-b border-solid border-0 border-sn-sleepy-grey rounded-t px-4 py-2 top-0 sticky z-[251] flex items-center flex-wrap">
<div class="flex items-center gap-4 mr-auto">
<% if can_read_experiment?(@my_module.experiment) %>
<a class="p-3 border-b-4 border-transparent hover:no-underline uppercase text-bold capitalize <%= is_module_protocols? ? "text-sn-blue" : "text-sn-grey" %>"
href="<%= protocols_my_module_url(@my_module) %>"
@ -22,6 +22,8 @@
<% end %>
<div data-hook="secondary-navigation-tabs"></div>
</div>
<div>
<%= render partial: '/my_modules/task_flow_and_sharing' %>
</div>
</div>

View file

@ -1,4 +1,4 @@
<div class="task-sharing-and-flows ml-auto flex items-center gap-2">
<div class="task-sharing-and-flows flex items-center gap-2 pl-3">
<%= render partial: 'my_modules/status_flow/task_flow_button', locals: { my_module: @my_module } if @my_module.my_module_status_flow %>
<%= javascript_include_tag("my_modules/status_flow") %>
<% if current_team.shareable_links_enabled? %>