Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Introduce weird hack for Firefox
* everything is 4 times as big (doubled width and doubled height)
  • Loading branch information
MorrisJobke committed Aug 17, 2016
commit 1444c1d3456b1f9b7179d1be2c7496a84bbc8fdd
5 changes: 5 additions & 0 deletions settings/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have todos as issues instead, pls?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will create it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {
Expand Down