Code Monkey home page Code Monkey logo

Comments (6)

renet avatar renet commented on September 23, 2024

It seems like the text-align: center; style on the .App class in the css file is causing these issues. To center-align the pagination, please consider removing this style and adding margin: auto; to the Container, instead. This should fix the issue.

@mkilp Can you confirm that this fixes the issue?

from liquid.

mkilp avatar mkilp commented on September 23, 2024

@renet Your suggestions did not fix the issue unfortunately.
In our prod application we had to play around with overflow-x: hidden; on some of the parent containers but that is obviously not intended.

I updated the codesandbox with your suggestions for your to review.

from liquid.

renet avatar renet commented on September 23, 2024

@mkilp The margin: auto; should not be added to the .App, but to the Container (using styled components). Does this help?

If this does not help in your production environment, please add a sandbox showcasing exactly the issue that you're having in the prod environment.

from liquid.

mkilp avatar mkilp commented on September 23, 2024

@renet adding margin:auto; does to the container does sadly not do anything.

Even in the sandbox the component is still causing the container / page to overflow. I removed the container and any added styles. I'd assume the hidden numbers should not cause the page to go that wide but fit within the existing viewport.
image

from liquid.

renet avatar renet commented on September 23, 2024

Ah, I totally get your point now. I was mislead by the more obvious visual bug that was caused by text-align: center; in the sandbox. I got you now and will look into this. There is a workaround that should fix this issue:

ld-pagination::part(wrapper) {
  overflow: hidden;
}

should do the job. Can you please confirm?

from liquid.

renet avatar renet commented on September 23, 2024

@mkilp Did the last workaround solve your problem?

from liquid.

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.