From b08dc70654f596efcc10a267b3a67c40123651f5 Mon Sep 17 00:00:00 2001 From: Juan Castro Date: Wed, 26 Aug 2026 11:07:48 -0400 Subject: [PATCH] Move the shared marker onto the icon's corner and shrink it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review feedback: too big, and in the wrong place. It sat in the badge cluster, which the dashboard pins to the row's top-left corner rather than to the icon — and at 12px it dominated a 24px row icon. Now a dot on the icon itself, lower-right: 9px on the desktop's 45px icons, 7px on the dashboard's 24px rows. Anchoring to .item-icon rather than to the badge cluster is what keeps it on the corner at both sizes. Dropping the people glyph with it — unreadable at either size, and colour was the signal the ticket asked for. --- src/gui/src/UI/Dashboard/TabFiles.js | 10 ++++------ src/gui/src/UI/UIItem.js | 13 ++++++------- src/gui/src/css/dashboard.css | 9 +++++++++ src/gui/src/css/style.css | 22 ++++++++++++---------- src/gui/src/helpers/sharedBadge.js | 4 ++-- 5 files changed, 33 insertions(+), 25 deletions(-) diff --git a/src/gui/src/UI/Dashboard/TabFiles.js b/src/gui/src/UI/Dashboard/TabFiles.js index 5c712078a..c6fe9cd82 100644 --- a/src/gui/src/UI/Dashboard/TabFiles.js +++ b/src/gui/src/UI/Dashboard/TabFiles.js @@ -2513,6 +2513,10 @@ const TabFiles = {
${icon} +
-
${html_encode(displayName)}
diff --git a/src/gui/src/UI/UIItem.js b/src/gui/src/UI/UIItem.js index 599667008..7ea257b46 100644 --- a/src/gui/src/UI/UIItem.js +++ b/src/gui/src/UI/UIItem.js @@ -217,6 +217,12 @@ async function UIItem (options) { // icon h += '
'; h += ``; + // Shared marker: on the icon rather than in the badge cluster, so it stays + // on the item's own corner at every icon size. + h += `
`; h += '
'; // badges h += '
'; @@ -240,13 +246,6 @@ async function UIItem (options) { data-item-id="${item_id}" title="${i18n('item_shortcut')}" >`; - // shared badge - h += ``; // worker badge h += ` { const $items = $(`.item[data-path="${html_encode(path)}" i]`); $items.attr('data-is_shared', is_shared ? 1 : 0); $items - .find('.item-is-shared-badge') - .css('display', is_shared ? 'block' : 'none'); + .find('.item-shared-marker') + .css('display', is_shared ? '' : 'none'); };