mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-17 14:32:34 +08:00
Add custom tooltip to left navigation [SCI-11552]
This commit is contained in:
parent
0fe6228bc1
commit
50ecefb12a
2 changed files with 8 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ body.navigator-collapsed {
|
|||
position: -webkit-sticky;
|
||||
top: 0;
|
||||
width: var(--left-navigation-width);
|
||||
z-index: 600;
|
||||
z-index: 605;
|
||||
}
|
||||
|
||||
.sci--layout-navigation-navigator {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
<div class="sci--layout--left-menu-container">
|
||||
<% left_menu_elements.each_with_index do |item, index| %>
|
||||
<%= link_to item[:url], title: item[:title] || item[:name], class:"sci--layout--menu-item", data: { e2e: "e2e-BT-leftMenu-#{item[:name].downcase}", active: item[:active], disabled: current_user.teams.blank? } do %>
|
||||
<%= link_to item[:url], title: item[:title] || item[:name], class:"sci--layout--menu-item", data: {
|
||||
e2e: "e2e-BT-leftMenu-#{item[:name].downcase}",
|
||||
active: item[:active],
|
||||
disabled: current_user.teams.blank?,
|
||||
toggle: "tooltip",
|
||||
placement: "right"
|
||||
} do %>
|
||||
<i class="sn-icon <%= item[:icon] %>"></i>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue