diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-08-17 14:45:08 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-08-17 14:45:08 +0200 |
commit | 1444c1d3456b1f9b7179d1be2c7496a84bbc8fdd (patch) | |
tree | dbde97ccb27aa0fa493215fecbee780db06531e4 /settings | |
parent | 960d0d1242880222b18ed17487003a499caf5a64 (diff) | |
download | nextcloud-server-1444c1d3456b1f9b7179d1be2c7496a84bbc8fdd.tar.gz nextcloud-server-1444c1d3456b1f9b7179d1be2c7496a84bbc8fdd.zip |
Introduce weird hack for Firefox
* everything is 4 times as big (doubled width and doubled height)
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 9a68ebf90ac..5a94a783812 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -234,6 +234,11 @@ OC.Settings.Apps = OC.Settings.Apps || { imageUrl : function (url, appfromstore) { 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) { img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>'; } else { |