diff --git a/client/res/templates/record/kanban-item.tpl b/client/res/templates/record/kanban-item.tpl index 786689bd0a..c6771e2a4b 100644 --- a/client/res/templates/record/kanban-item.tpl +++ b/client/res/templates/record/kanban-item.tpl @@ -4,7 +4,7 @@
{{#if isFirst}} {{#unless rowActionsDisabled}} -
{{{../itemMenu}}}
+
{{{../itemMenu}}}
{{/unless}} {{/if}}
diff --git a/client/src/ui/app-init.js b/client/src/ui/app-init.js index a2ddcc882d..37a4c36bef 100644 --- a/client/src/ui/app-init.js +++ b/client/src/ui/app-init.js @@ -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', }); - } + }*/ }); } diff --git a/frontend/less/espo/elements/dropdown.less b/frontend/less/espo/elements/dropdown.less index 2b71630930..ea8e183178 100644 --- a/frontend/less/espo/elements/dropdown.less +++ b/frontend/less/espo/elements/dropdown.less @@ -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 {