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

Theming: aspect ratio of logo #344

Closed
jospoortvliet opened this issue Jul 8, 2016 · 11 comments
Closed

Theming: aspect ratio of logo #344

jospoortvliet opened this issue Jul 8, 2016 · 11 comments
Labels
bug design Design, UI, UX, etc. feature: theming good first issue Small tasks with clear documentation about how and in which place you need to fix things in. low

Comments

@jospoortvliet
Copy link
Member

I added a round image as theme and whadda-you-know - it didn't look so awesome:
spectacle p16387

I think we should either preserve the aspect ratio (best) or tell users what aspect ratio the logo must have ;-)

Shouldn't be very hard to fix.

@jospoortvliet jospoortvliet added bug design Design, UI, UX, etc. good first issue Small tasks with clear documentation about how and in which place you need to fix things in. low feature: theming labels Jul 8, 2016
@MariusBluem
Copy link
Member

  • add some information about optimal size (px) for uploaded pictures

@juliushaertl
Copy link
Member

There is also an issue on the login page. Images that are too high, get cropped there.

@jospoortvliet
Copy link
Member Author

@juliushaertl ah yes they do...
spectacle f29735

@Bugsbane
Copy link
Member

Personally I'd recommend keeping the aspect ration with max-height and max-width values on both images.

@clorenz150
Copy link

In apps/theming/lib/controller/themingcontroller.php at line 223 I replaced the content of #header .logo-icon with:

width: 62px;
height: 34px;
background-image: url(\'./logo?v='.$cacheBusterValue.'\');
background-size: contain;
vertical-align:middle;
display: inline-block;

Looks fine for me, but I'm not sure if this has site affects.

@Bugsbane
Copy link
Member

Looks good @clorenz150 👍

@MorrisJobke
Copy link
Member

@clorenz150 Could I ask you to open this change as a pull request?

@christianpoortvliet
Copy link

Does not seem to work with transparant png's too, so that is a bummer.

@Bugsbane
Copy link
Member

Does not seem to work with transparant png's

I imagine this is likely a browser specific issue, although I'd need to check. What browser are you viewing on?

@Bugsbane
Copy link
Member

Sorry, hit the wrong button. Didn't mean to close this issue.

@Bugsbane Bugsbane reopened this Jul 23, 2016
@MorrisJobke
Copy link
Member

Fixed with #525

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug design Design, UI, UX, etc. feature: theming good first issue Small tasks with clear documentation about how and in which place you need to fix things in. low
Projects
None yet
Development

No branches or pull requests

7 participants