Comments (6)
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.
@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.
@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.
@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.
from liquid.
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.
@mkilp Did the last workaround solve your problem?
from liquid.
Related Issues (20)
- bug: some elements report a 0x0 bounding box in playwright / inspector HOT 1
- Placeholder of LdSelect HOT 1
- bug: table is not accessible via VoiceOver
- bug: Translations break LdTabs HOT 3
- feat: ld-tooltip horizontal position adjustment
- bug: ld-tooltip causes "Failed to execute 'removeChild' on 'Node'" HOT 1
- bug: onClick handler not called on LdMenuitem HOT 2
- feat(ld-cookie-notice): apply requirements from legal HOT 1
- bug: LdTabs inside LdSidenav moves content on changing tab index HOT 1
- feat: ld-card without padding
- bug: LdSelect with filter doesn't always get focus HOT 1
- feat: add download attribute for LdLink HOT 2
- bug: https://downgit.github.io reports "harmful programs" HOT 1
- feat(ld-sidenav-navitem): add support for secondary label
- feat: grouping feature to the Select component HOT 2
- improvement: Refactor ld-select.tsx as it's almost 1,500 lines big now
- bug: ld-sidenav-navitem text overflows container in single line mode
- bug: Placeholder of ld-input is too dark HOT 1
- bug: LdInput readonly bind on boolean value are still editable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liquid.