Merge pull request #3206 from urbanrotnik/ur-sci-5518

Fix titles hovering breadcrumbs [SCI-5518]
This commit is contained in:
Urban Rotnik 2021-03-09 13:59:20 +01:00 committed by GitHub
commit ee39224f73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 6 deletions

View file

@ -36,6 +36,12 @@
margin: 0;
}
.name-readonly-placeholder {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-actions {
align-items: center;
display: flex;

View file

@ -322,13 +322,12 @@ a[data-toggle="tooltip"] {
}
&.with-breadcrumbs {
padding-top: 0;
padding-top: .5em;
}
}
.nav-name {
align-items: center;
display: flex;
height: 54px;
line-height: 44px;
margin: 0;

View file

@ -3,10 +3,10 @@
<%= render partial: 'projects/index/breadcrumbs', locals: { target_folder: current_folder } if current_folder %>
</div>
<div class="title-row">
<h1 data-view-mode="active" class="projects-title"><%= current_folder&.name || t('projects.index.head_title') %></h1>
<h1 data-view-mode="active" class="projects-title name-readonly-placeholder"><%= current_folder&.name || t('projects.index.head_title') %></h1>
<h1 data-view-mode="archived">
<i class="fas fa-archive"></i>&nbsp;
<span class="projects-title"><%= current_folder&.name || t('projects.index.head_title_archived') %></span>
<span class="projects-title name-readonly-placeholder"><%= current_folder&.name || t('projects.index.head_title_archived') %></span>
</h1>
<div class="sci-btn-group header-actions">

View file

@ -12,7 +12,9 @@
config: @inline_editable_title_config
} %>
<% else %>
<%= @project.name %>
<div class="name-readonly-placeholder">
<%= @project.name %>
</div>
<% end %>
</h1>
<div class="sci-btn-group header-actions">

View file

@ -11,8 +11,8 @@
<% my_modules.each do |my_module| %>
<li class="sidebar-leaf">
<%= link_to my_module.name,
title: my_module.name,
protocols_my_module_url(my_module),
title: my_module.name,
class: 'sidebar-link',
data: { module_id: my_module.id } %>
</li>