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

Add styles to make panel scrollable #692

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Add styles to make panel scrollable #692

merged 2 commits into from
Oct 6, 2023

Conversation

hanbyul-here
Copy link
Collaborator

@hanbyul-here hanbyul-here commented Oct 5, 2023

Follow up of : #691
Fixing panel overflowing problem in https://deploy-preview-201--ghg-demo.netlify.app/data-catalog/epa-ch4emission-yeargrid-v2express/explore?projection=equirectangular%7C%7C&basemapid=light&datetime=2020-01-01T00%3A00%3A00.000Z

Wow Scroll is hard. It will be ideal if we can find a way to stick the date widget and make only layers roll, but I am giving up here.. This change basically resurrects what ShadowScroll does for HTML and CSS sans some unnecessary elements for this case.

I noticed that the window scroll sometimes pops up if you scroll very fast on the panel area. (Sorry, I cannot reproduce stably enough to grab a screen recording.) this error happens in production environment, too, so this PR doesn't necessarily introduce the error. But with the default (thicker) scroll, the error seems more noticeable.

@netlify
Copy link

netlify bot commented Oct 5, 2023

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit cf8a812
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/65200f97f5578f0008ccad30
😎 Deploy Preview https://deploy-preview-692--veda-ui.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hanbyul-here hanbyul-here requested a review from nerik October 5, 2023 20:59
@hanbyul-here hanbyul-here force-pushed the fix/panel-scroll branch 2 times, most recently from bb8fdc5 to a5c5bd5 Compare October 5, 2023 21:06
Copy link
Contributor

@nerik nerik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks.

I noticed that the window scroll sometimes pops up if you scroll very fast on the panel area. I was not able to reproduce that

app/scripts/components/datasets/s-explore/index.tsx Outdated Show resolved Hide resolved
app/scripts/components/datasets/s-explore/index.tsx Outdated Show resolved Hide resolved
Co-authored-by: Erik Escoffier <[email protected]>
@hanbyul-here hanbyul-here merged commit e2c4b90 into ghg Oct 6, 2023
7 checks passed
@hanbyul-here hanbyul-here deleted the fix/panel-scroll branch October 6, 2023 13:52
hanbyul-here added a commit that referenced this pull request Oct 6, 2023
Follow up of #692
Currently panel body is showing up scrolls even when not needed. This PR
fixes the issue.
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

Successfully merging this pull request may close these issues.

2 participants