From fbd191c85bb040bc30c33b4f80fb9e04df5e6241 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 22 Jul 2026 08:36:45 -0400 Subject: [PATCH] local-workspace: reposition Open button to right of title, fix hover visibility - Add CSS rule .ws-tree-item:hover .hover-only for tree item hover visibility - Move OPEN button OUT of .actions div, place it right after title span with margin-left:auto and .hover-only class (matches Library layout exactly) - Fix renderChildren() static HTML: button now between name span and .actions - Remove duplicate button from inside .actions div - Button calls selectForPreview(node) or openSidePeek(id) for side preview panel --- app/templates/local_workspace.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 10f7e8c..df9ce0a 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -90,6 +90,7 @@ /* ── Hover-only elements ── */ .hover-only{opacity:0;transition:opacity 0.12s;flex-shrink:0;} .ws-row:hover .hover-only,.ws-row.selected .hover-only{opacity:1;} +.ws-tree-item:hover .hover-only,.ws-tree-item.selected .hover-only{opacity:1;} /* ── Drag handle ── */ .drag-handle{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;cursor:grab;flex-shrink:0;margin-right:2px;} @@ -1113,6 +1114,12 @@ window._wsInitData = (function() { + ' onclick="event.stopPropagation()">' + ''; } + // Open button for files — to the right of title (like Library) + if (!c.is_folder) { + html += '↢ Open'; + } html += '
'; if (c.is_folder) { html += ''; @@ -1123,12 +1130,6 @@ window._wsInitData = (function() { } html += ''; html += ''; - // Open button for files — opens in side preview panel (like Library) - if (!c.is_folder) { - html += '\u21e2 Open'; - } // Tags if (c.tags && c.tags.length > 0) { html += ''; @@ -2434,6 +2435,9 @@ console.log('FLOWDECK v2.4.6 — IIFE done, _wsInitData keys:', Object.keys(wind @blur="commitRename(node)" @click.stop style="width:100%"> +
-