Remove hack

This commit is contained in:
Roeland Jago Douma 2016-08-17 15:16:48 +02:00 committed by Morris Jobke
parent b8d4baacdc
commit ed950eb861
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 1 additions and 5 deletions

View File

@ -234,11 +234,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
imageUrl : function (url, appfromstore) { imageUrl : function (url, appfromstore) {
var img = '<svg width="72" height="72" viewBox="0 0 72 72">'; var img = '<svg width="72" height="72" viewBox="0 0 72 72">';
// weird hack because in Firefox everything is 4 times as big (doubled in width and doubled in height)
// TODO: replace this with a proper solution
if($.browser.mozilla) {
img = '<svg width="72" height="72" viewBox="0 0 36 36">';
}
if (appfromstore) { if (appfromstore) {
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>'; img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>';
} else { } else {