mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Fix the tooltips positioning on canvas
This commit is contained in:
parent
9632d1cd01
commit
c079f16d58
1 changed files with 6 additions and 4 deletions
|
@ -1,10 +1,12 @@
|
|||
<div class="tags-container pull-right">
|
||||
<div
|
||||
class="tags-container pull-right help_tooltips"
|
||||
data-tooltiplink="<%= I18n.t('tooltips.link.task.color_tag') %>"
|
||||
data-tooltipcontent="<%= I18n.t('tooltips.text.task.color_tag') %>"
|
||||
>
|
||||
<% tags2 = my_module.tags[0..3] %>
|
||||
<% tags2.each do |tag| %>
|
||||
<div style="color: <%= tag.color %>"
|
||||
class="<%= "last" if tag == tags2[-1] %> help_tooltips"
|
||||
data-tooltiplink="<%= I18n.t('tooltips.link.task.color_tag') %>"
|
||||
data-tooltipcontent="<%= I18n.t('tooltips.text.task.color_tag') %>"
|
||||
class="<%= "last" if tag == tags2[-1] %>"
|
||||
title="<%= tag.name %>">
|
||||
<span class="fas fa-tag"></span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue