Giter Club home page Giter Club logo

Comments (5)

bluebill1049 avatar bluebill1049 commented on May 28, 2024

can you add imgStyle: { transition: '0s' }? if you don't want animation, curious to know the reason too.

from react-simple-img.

pkellner avatar pkellner commented on May 28, 2024

First, my appologies for not submitting a nice bug report. I'm bad at CSS and the complex CSS I have is no longer supported so my changes are painful. My hope was to just replace my img tags with your SimpleImg tag. It did work well on my speakers and sessions but not so much on sponsors. When I inspect the html and compare it pre and post SimpleImg, there is a div added that I think is hurting my formatting.

If you look at this page near the bottom https://svcc.mobi/, you'll see a tab dialog that shows "Gold & Platinum" and "All The Sponsors". They basically show the same formatting. "Gold & Platinum" format as I would expect (flowing across the screen), and "All the sponsors" has the imaged forced to one image per row. The only difference is "All the sponsors" uses the SimpleImg tag (and I had to add width and height of 200 but now sure why).

Again, my hope was I could just drop in the SimpleImg tag and the formatting would not change.

Make sense? I can explain further if this is not clear.

BTW, thanks for putting this together. Very nice !

from react-simple-img.

bluebill1049 avatar bluebill1049 commented on May 28, 2024

i see @pkellner can you try to use placeholder={false} in SimpleImfg, see if that solve your layout issue.

from react-simple-img.

pkellner avatar pkellner commented on May 28, 2024

That worked! Thanks. I had tried it before, but I read that placeholder is a string so I passed it as placeholder={"false"} and I'm pretty sure that did not help me. I use TypeScript and I don't there there is a type file that would have helped me. Again, something I wish I knew more about.

Thanks again for the help, your contributions, and this awesome project.

from react-simple-img.

bluebill1049 avatar bluebill1049 commented on May 28, 2024

that's great to hear! thank you :) close the issue when you ready 👍

from react-simple-img.

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.