-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Comments
|
There is also an issue on the login page. Images that are too high, get cropped there. |
@juliushaertl ah yes they do... |
Personally I'd recommend keeping the aspect ration with max-height and max-width values on both images. |
In apps/theming/lib/controller/themingcontroller.php at line 223 I replaced the content of 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. |
Looks good @clorenz150 👍 |
@clorenz150 Could I ask you to open this change as a pull request? |
Does not seem to work with transparant png's too, so that is a bummer. |
I imagine this is likely a browser specific issue, although I'd need to check. What browser are you viewing on? |
Sorry, hit the wrong button. Didn't mean to close this issue. |
Fixed with #525 |
I added a round image as theme and whadda-you-know - it didn't look so awesome:
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.
The text was updated successfully, but these errors were encountered: