diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js
index 1d30e2686..76fddf54b 100644
--- a/src/UI/UIItem.js
+++ b/src/UI/UIItem.js
@@ -804,7 +804,7 @@ function UIItem(options){
let items = [];
$selected_items.each(function() {
const ell = this;
- items.push({uid: $(ell).attr('data-uid'), path: $(ell).attr('data-path')});
+ items.push({uid: $(ell).attr('data-uid'), path: $(ell).attr('data-path'), icon: $(ell).find('.item-icon img').attr('src'), name: $(ell).attr('data-name')});
})
UIWindowShare(items);
}
diff --git a/src/UI/UIWindowShare.js b/src/UI/UIWindowShare.js
index 148546959..8d3425454 100644
--- a/src/UI/UIWindowShare.js
+++ b/src/UI/UIWindowShare.js
@@ -6,11 +6,51 @@ async function UIWindowShare(items, recipient){
h += `
`;
h += `
×
`;
- // icon
- h += `

`;
+ //------------------------------------------------
+ // Icon
+ //------------------------------------------------
+
+ // 1 item shared
+ h += `
`;
+ if(items.length === 1)
+ h += `

`;
+ // 2 items shared
+ else if(items.length === 2){
+ h += `

`;
+ h += `

`;
+ }
+ // 3 items shared
+ else if(items.length === 3){
+ h += `

`;
+ h += `

`;
+ h += `

`;
+ }
+ // 4 items shared
+ else if(items.length === 4){
+ h += `

`;
+ h += `

`;
+ h += `

`;
+ h += `

`;
+ }
+ // 5 items shared
+ else if(items.length >= 5){
+ h += `

`;
+ h += `

`;
+ h += `

`;
+ h += `

`;
+ h += `

`;
+ }
- // name
- h += `
${items.length > 1 ? `Share ${items.length} items` : `${html_encode(items[0].name)}`}
`;
+ h += `
`;
+
+ // ------------------------------------------------
+ // Name
+ // ------------------------------------------------
+ h += `
`;
+ h += `Share ${html_encode(items[0].name)}`;
+ if(items.length > 1)
+ h += ` and ${items.length - 1} other item${items.length > 2 ? 's' : ''}`;
+ h += `
`;
// form
h += `