Skip to content
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

Horizontal timeline overflow #467

Open
RulerChen opened this issue Feb 1, 2024 · 0 comments
Open

Horizontal timeline overflow #467

RulerChen opened this issue Feb 1, 2024 · 0 comments
Assignees

Comments

@RulerChen
Copy link

RulerChen commented Feb 1, 2024

I have an overflow issue when using Docusaurus mdx files. I don't know how to fix it.
I also discovered that the timeline point is slightly offset from the center.
I'm not sure if this is an issue with mdx or with react-chrono.

"@docusaurus/core": "^3.1.1",
"@mdx-js/react": "^3.0.0",
"react-chrono": "^2.4.2",

here is my code

### Timeline

import { Chrono } from 'react-chrono';
import { yahoo } from './timeline';

<div style={{ width: '100%', height: '500px' }}>
  <Chrono
    items={yahoo}
    mode="HORIZONTAL"
    theme={{
      primary: 'white',
      secondary: 'white',
      titleColor: 'white',
      titleColorActive: '#242526'
    }}
    cardLess
    hideControls
    disableTimelinePoint
  />
</div>

result

image

thanks for your time.

@RulerChen RulerChen changed the title horizontal timeline overflow Horizontal timeline overflow Feb 1, 2024
@prabhuignoto prabhuignoto self-assigned this Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants