Merge pull request 'fix/fix-bugs' (#334) from fix/fix-bugs into hotfix/v9.0.1

This commit is contained in:
Maxim Kadushkin
2025-06-23 08:10:24 +00:00
2 changed files with 5 additions and 3 deletions

View File

@ -790,6 +790,7 @@ li.menu-item {
padding: 12px 16px 0; // 16px inner + outer 32px
overflow-x: auto;
min-height: 184px;
overflow-y: hidden;
@media(max-width: 1280px) {
padding-right: 48px;

View File

@ -327,9 +327,10 @@
}
};
function addContextMenuEventListener(collection, model, view) {
function addContextMenuEventListener(collection, model, view, actionList) {
$(`#${model.uid}-more-btn`, view).click((e) => {
e.stopPropagation();
ppmenu.actionlist = actionList;
ppmenu.showUnderElem(e.currentTarget, model, $('body').hasClass('rtl') ? 'left' : 'right');
})
}
@ -352,7 +353,7 @@
collection.list.append($item);
addContextMenuEventListener(collection, model, this.view.$panel);
addContextMenuEventListener(collection, model, this.view.$panel, 'recent');
collection.list.parent().removeClass('empty');
});
@ -387,7 +388,7 @@
});
collectionRecovers.events.inserted.attach((collection, model)=>{
collection.list.append( this.view.listitemtemplate(model) );
addContextMenuEventListener(collection, model, this.view.$panel);
addContextMenuEventListener(collection, model, this.view.$panel, 'recovery');
});
collectionRecovers.events.click.attach((collection, model)=>{
openFile(OPEN_FILE_RECOVERY, model);