fix kanban menu with star

This commit is contained in:
Yuri Kuznetsov
2025-10-30 17:00:57 +02:00
parent 33451a1118
commit 6e2416dc56
3 changed files with 14 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
<div>
{{#if isFirst}}
{{#unless rowActionsDisabled}}
<div class="pull-right item-menu-container fix-overflow">{{{../itemMenu}}}</div>
<div class="pull-right item-menu-container fix-position">{{{../itemMenu}}}</div>
{{/unless}}
{{/if}}
<div class="form-group">

View File

@@ -112,8 +112,14 @@ function uiAppInit() {
const $dashletBody = $(target).closest('.dashlet-body');
if ($dashletBody.length) {
const $body = $dashletBody;
const fixPosition = e.target.parentElement.classList.contains('fix-position');
if ($dashletBody.length || fixPosition) {
let $body = $dashletBody;
if (fixPosition) {
$body = $(window);
}
$(target).removeClass('dropup');
@@ -152,10 +158,10 @@ function uiAppInit() {
right: 'auto',
});
return;
//return;
}
if (e.target.parentElement.classList.contains('fix-overflow')) {
/*if (e.target.parentElement.classList.contains('fix-overflow')) {
$(target).removeClass('dropup');
const isRight = e.target.classList.contains('pull-right');
@@ -187,7 +193,7 @@ function uiAppInit() {
left: left,
right: 'auto',
});
}
}*/
});
}

View File

@@ -204,11 +204,11 @@ ul.dropdown-menu {
margin-right: var(--2px);
}
.fix-overflow {
/*.fix-position {
.btn-group {
position: unset;
}
}
}*/
.dropdown-menu {
.quick-search-list-item {