Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of svg scaling hack for Firefox in the apps management #908

Closed
MorrisJobke opened this issue Aug 17, 2016 · 4 comments
Closed

Get rid of svg scaling hack for Firefox in the apps management #908

MorrisJobke opened this issue Aug 17, 2016 · 4 comments

Comments

@MorrisJobke
Copy link
Member

  • introduced with Fix icons on App page in FF #905
  • see

    server/settings/js/apps.js

    Lines 237 to 241 in 1444c1d

    // 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">';
    }

cc @rullzer @juliushaertl @Bugsbane @raghunayyar @Mar1u5

@juliusknorr
Copy link
Member

Hmm, bad that we had such a bug 😢

I guess we should get rid of the svg filter inversion completely to avoid such side-effects. At first it looked like an easy way to use this, but it wasn't.

My idea would be to add some IconController to core that will just read the svg from the app replace color codes and return a new svg image.(just similar to what is done https://github.com/nextcloud/server/pull/840/files#diff-55c944adbad26e06ef3fc9b2b219f281R275)
Then we could just go with the default -tag that works everywhere.
What do you think about that?

@rullzer
Copy link
Member

rullzer commented Aug 17, 2016

While that would be the 'easy' solution. Something that we can do client side scales a lot better.

@rullzer
Copy link
Member

rullzer commented Aug 17, 2016

Ok it was the viewBox thing that was missing. This basically made FF (and others) say I don't know how to scale it.

It is fixed now.

@rullzer rullzer closed this as completed Aug 17, 2016
@MorrisJobke
Copy link
Member Author

It is fixed now.

In #905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants