Skip to content

feat: add new scroll container #200

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

Merged
merged 1 commit into from
Jun 17, 2025
Merged

Conversation

ZuperZee
Copy link
Contributor

@ZuperZee ZuperZee commented Jun 4, 2025

Replaces the old deprecated CustomScrollbar with the new ScrollContainer component from Grafana.

The new ScrollContainer only works with Grafana 11.5.0 or later.
Older versions of Grafana will still use the old CustomScrollbar.

Before:
image

After:
image

Kinda hard to decide if this is a breaking change or not.
There isn't any breaking API, behavior, or functionality change, but the new ScrollContainer component does add some shading/gradient to the top and bottom of the container when scrolled.
This would require some CSS/options to be changed for users of the plugin to remove the shading.
The ScrollContainer is also the default, which might make older panels have an unwanted shading.

Copy link

github-actions bot commented Jun 4, 2025

Bundle Size Changes

Hello! 👋 This comment was generated by a Github Action to help you and reviewers understand the impact of your PR on frontend bundle sizes.

Whenever this PR is updated, this comment will update to reflect the latest changes.

EntryPoint Size % Diff
module 57.97 KB (+25.06 KB) +76.14%
Files Total bundle size % Diff
23 1.02 MB (+25.06 KB) +2.45%
View detailed bundle information

Added

No assets were added

Removed

No assets were removed

Bigger

Name Size % Diff
module.js 57.97 KB (+25.06 KB) +76.14%

Smaller

No assets were smaller

View module information

Added

No modules were added

Removed

No modules were removed

Bigger

Name Size % Diff
.pnpm 75.34 KB (+63.13 KB) +516.95%
./HTMLPanel.tsx 12.35 KB (+392 Bytes) +3.20%

Smaller

No modules were smaller

Replaces the old deprecated CustomScrollbar with the new
ScrollContainer component from Grafana.

The new ScrollContainer only works with Grafana 11.5.0 or later.
Older versions of Grafana will still use the old CustomScrollbar.
@ZuperZee ZuperZee force-pushed the zuperzee/add-new-scroll-container branch from 85108c4 to 9c05e2d Compare June 17, 2025 07:22
@ZuperZee ZuperZee marked this pull request as ready for review June 17, 2025 07:30
@ZuperZee ZuperZee merged commit 76b65d0 into main Jun 17, 2025
5 checks passed
@ZuperZee ZuperZee deleted the zuperzee/add-new-scroll-container branch June 17, 2025 07:34
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.

1 participant