mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
remove 48x48 library icons (#7126)
This commit is contained in:
@@ -348,17 +348,12 @@ export const Utils = {
|
||||
return isIE || isIE11;
|
||||
},
|
||||
|
||||
getDefaultLibIconUrl: function (isBig) {
|
||||
let size = Utils.isHiDPI() ? 48 : 24;
|
||||
size = isBig ? 256 : size;
|
||||
let icon_name = 'lib.png';
|
||||
return mediaUrl + 'img/lib/' + size + '/' + icon_name;
|
||||
getDefaultLibIconUrl: function () {
|
||||
return mediaUrl + 'img/lib/256/lib.png';
|
||||
},
|
||||
|
||||
getLibIconUrl: function (repo, isBig) {
|
||||
getLibIconUrl: function (repo) {
|
||||
let permission = repo.permission || repo.share_permission; // Compatible with regular repo and repo shared
|
||||
let size = Utils.isHiDPI() ? 48 : 24;
|
||||
size = isBig ? 256 : size;
|
||||
|
||||
let icon_name = 'lib.png';
|
||||
if (repo.encrypted) {
|
||||
@@ -381,7 +376,7 @@ export const Utils = {
|
||||
icon_name = 'lib-readonly.png';
|
||||
}
|
||||
|
||||
return mediaUrl + 'img/lib/' + size + '/' + icon_name;
|
||||
return mediaUrl + 'img/lib/256/' + icon_name;
|
||||
},
|
||||
|
||||
getDirentIcon: function (dirent, isBig) {
|
||||
|
Reference in New Issue
Block a user