mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Merge pull request #2489 from aignatov-bio/ai-sci-4500-fix-team-dropdown
Fix team dropdown [SCI-4500]
This commit is contained in:
commit
a2a5f8cfbd
3 changed files with 3 additions and 3 deletions
|
@ -90,11 +90,9 @@
|
|||
|
||||
ps = new PerfectScrollbar(teamContainter, { scrollYMarginOffset: 5 });
|
||||
teamSwitch.click(() => {
|
||||
dropDownHeight = dropDownMenu.height();
|
||||
if (teamSwitch.find('.new-team').length === 0) {
|
||||
teamSwitch.find('.edit_user').css('height', '100%');
|
||||
}
|
||||
dropDownMenu.css('height', (dropDownHeight + 'px'));
|
||||
setTimeout(() => {
|
||||
ps.update();
|
||||
}, 0);
|
||||
|
|
|
@ -311,8 +311,10 @@
|
|||
|
||||
.dropdown-menu {
|
||||
border-radius: 0;
|
||||
height: auto;
|
||||
margin-top: 0;
|
||||
max-height: calc(100vh - 50px);
|
||||
overflow: scroll;
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
width: 100%;
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if current_user.teams.length > 1 && can_create_teams? %>
|
||||
<% if can_create_teams? %>
|
||||
<li class="new-team">
|
||||
<%= link_to new_team_path do %>
|
||||
<span class="fas fa-plus"></span>
|
||||
|
|
Loading…
Reference in a new issue