diff --git a/CHANGELOG.md b/CHANGELOG.md index 59eb09e..6c7e9f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## Changes 5/23/2025 v1.3.8 + +- **Folder-strip context menu** + - Enabled right-click on items in the new folder strip (above file list) to open the same “Create / Rename / Share / Delete Folder” menu as in the main folder tree. + - Bound `contextmenu` event on each `.folder-item` in `loadFileList` to: + - Prevent the default browser menu + - Highlight the clicked folder-strip item + - Invoke `showFolderManagerContextMenu` with menu entries: + - Create Folder + - Rename Folder + - Share Folder (passes the strip’s `data-folder` value) + - Delete Folder + - Ensured menu actions are wrapped in arrow functions (`() => …`) so they fire only on menu-item click, not on render. + +- Refactored folder-strip injection in `fileListView.js` to: + - Mark each strip item as `draggable="true"` (for drag-and-drop) + - Add `el.addEventListener("contextmenu", …)` alongside existing click/drag handlers + - Clean up global click listener for hiding the context menu + +- Prevented premature invocation of `openFolderShareModal` by switching to `action: () => openFolderShareModal(dest)` instead of calling it directly. + +- **Create File/Folder dropdown** + - Replaced standalone “Create File” button with a combined dropdown button in the actions toolbar. + - New markup + - Wired up JS handlers in `fileActions.js`: + - `#createFileOption` → `openCreateFileModal()` + - `#createFolderOption` → `document.getElementById('createFolderModal').style.display = 'block'` + - Toggled `.dropdown-menu` visibility on button click, and closed on outside click. + - Applied dark-mode support: dropdown background and text colors switch with `.dark-mode` class. + +--- + ## Changes 5/22/2025 v1.3.7 - `.folder-strip-container .folder-name` css added to center text below folder material icon. diff --git a/public/css/styles.css b/public/css/styles.css index 464164b..969af72 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -848,11 +848,27 @@ body:not(.dark-mode) .material-icons.pauseResumeBtn:hover { background-color: #00796B; } -#createFileBtn { +#createBtn { background-color: #007bff; color: white; } +body.dark-mode .dropdown-menu { + background-color: #2c2c2c !important; + border-color: #444 !important; + color: #e0e0e0!important; +} +body.dark-mode .dropdown-menu .dropdown-item { + color: #e0e0e0 !important; +} + +.dropdown-item:hover { + background-color: rgba(0,0,0,0.05); +} +body.dark-mode .dropdown-item:hover { + background-color: rgba(255,255,255,0.1); +} + #fileList button.edit-btn { background-color: #007bff; color: white; diff --git a/public/index.html b/public/index.html index 32720f2..5222fc4 100644 --- a/public/index.html +++ b/public/index.html @@ -391,9 +391,36 @@ data-i18n-key="download_zip">Download ZIP - +