From 765eb43568bb932858d1817f656fbd04dcbb459c Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sun, 14 Apr 2024 12:50:28 -0700 Subject: [PATCH] Disable manual arrangement in Explore --- src/UI/UIItem.js | 8 ++++++-- src/css/style.css | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index 996611e6..d6bd660b 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -187,8 +187,12 @@ function UIItem(options){ update_explorer_footer_item_count(el_window); } - // position - if(!is_auto_arrange_enabled && options.position && $(el_item).closest('.item-container').attr('data-path') === window.desktop_path){ + // manual positioning + if( !is_auto_arrange_enabled && + options.position && + // item is on the desktop (must be desktop itself and not a window, hence the '.desktop' class check) + $(el_item).closest('.item-container.desktop').attr('data-path') === window.desktop_path + ){ el_item.style.position = 'absolute'; el_item.style.left = options.position.left + 'px'; el_item.style.top = options.position.top + 'px'; diff --git a/src/css/style.css b/src/css/style.css index e6be6989..7096bae2 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -1037,6 +1037,7 @@ span.header-sort-icon img { width: initial; padding-left: 10px; border: 3px solid rgba(255, 255, 255, 0); + position: relative; } .item-container-transparent-border {