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'); };