-
Notifications
You must be signed in to change notification settings - Fork 0
Add Virtualization to Redoc #1
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
Add Virtualization to Redoc #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice changes
Yup beautiful indeed |
Nice work! |
Thank you. |
Brilliant work ! |
<div ref={scrollableRef} style={{ height: '100dvh', width: '100%', overflowY: 'auto' }}> | ||
<div | ||
style={{ | ||
height: virtualizer.getTotalSize() + 257, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this specific number means?
Will this cause an issue in the web's dimension responsiveness? i.e. if we open the API docs in smaller devices
top: 0, | ||
left: 0, | ||
width: '100%', | ||
transform: `translateY(${virtualItem.start + 500}px)`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as my comment above.
Will the + 500
cause an issue in the web's dimension responsiveness? i.e. if we open the API docs in smaller devices
Sorry, just realized my comment is on pending review, not submitted yet lmao |
Thanks Alfin. Yes it was the dirts I haven't cleaned up during the development (did some trial and error). |
Unit Tests
Demo Video
Sent on MS Teams.