Code Monkey home page Code Monkey logo

Comments (4)

jpanther avatar jpanther commented on July 17, 2024

I guess this technically isn't a bug as I assumed people would provide a logo that would be a suitable size for their design intent. I can see why this is a potential issue though.

One of the challenges here is that logos can be varied in how they are used and I'm trying to keep it flexible in terms of allowing any aspect ratio. The compromise is to set max width and height parameters on these and take the trade-off that it will reduce the flexibility in some situations.

from congo.

slashformotion avatar slashformotion commented on July 17, 2024

ok thanks for the answer

The compromise is to set max width and height parameters on these and take the trade-off that it will reduce the flexibility in some situations.

Seems the best of both world

from congo.

jpanther avatar jpanther commented on July 17, 2024

I've added some constraints to the logo and it will now scale down images that are too large in either dimension. The maximum dimensions are capped at 10rem which under default circumstances translates to 160 x 160px.

from congo.

schperplata avatar schperplata commented on July 17, 2024

I am having a problem with this default constraint: my logo is not square, but rectangular, for example 640x70px. With current default (max) value, 160px in width scale down logo way too much, making too small.
Is there a any way to override logo dimensions?

from congo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.