mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix titles to one line
SCI-5518
This commit is contained in:
parent
e1db291729
commit
919eeb2783
4 changed files with 12 additions and 5 deletions
|
@ -36,6 +36,12 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.name-readonly-placeholder {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
<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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue