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

The white line not showing on the first render in NextJS 13 #160

Open
BeldimanAR opened this issue May 28, 2023 · 3 comments
Open

The white line not showing on the first render in NextJS 13 #160

BeldimanAR opened this issue May 28, 2023 · 3 comments

Comments

@BeldimanAR
Copy link

When i scroll down to the component in which the vertical timeline is, it shows the cards but the line is invisible, only on the second render (when i edit my file for example) the line appears. Anyone had this issue before? I have the same code in React.js and works, is it a problem with nextjs?

@captaincrackerjack
Copy link

I have the opposite issue, the line appears upon first render, but after reloading the page, disappears from view. Not sure how to fix either.

@alexnguyennz
Copy link

Had a similar issue where the line didn't appear until about a second later. Previously I had the default animate on so this was hiding the issue.

I added the default timeline styles (style.min.css) into my main CSS and just set the background colour for the line:

.vertical-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: white; /* var(--line-color) */
}

The timeline component is also lazy loaded in my project. Working perfectly for me after this in Next.js 13 & app router.

@farrukh007
Copy link

Screenshot 2023-10-08 010511

Having alignemnt issues. I am unable to resize content box. How to align and set width of the content box?

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

4 participants