Skip to content

Commit 1444c1d

Browse files
committed
Introduce weird hack for Firefox
* everything is 4 times as big (doubled width and doubled height)
1 parent 960d0d1 commit 1444c1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

settings/js/apps.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ OC.Settings.Apps = OC.Settings.Apps || {
234234

235235
imageUrl : function (url, appfromstore) {
236236
var img = '<svg width="72" height="72" viewBox="0 0 72 72">';
237+
// weird hack because in Firefox everything is 4 times as big (doubled in width and doubled in height)
238+
// TODO: replace this with a proper solution
239+
if($.browser.mozilla) {
240+
img = '<svg width="72" height="72" viewBox="0 0 36 36">';
241+
}
237242
if (appfromstore) {
238243
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>';
239244
} else {

0 commit comments

Comments
 (0)