1
0
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:
Michael An
2024-11-29 14:42:08 +08:00
committed by GitHub
parent 9048035920
commit 8ba060bcdd
23 changed files with 24 additions and 43 deletions

View File

@@ -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) {