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

fix: removing dashboard scrollbars #12479

Closed

Conversation

rusackas
Copy link
Member

SUMMARY

In order to fix the random scrollbars on dashboard charts, I added a flex layout to the .chart-slice div. This seems to remove some "phantom" spacing between the chart header and the chart body that was causing the overflow. From what I can tell this leaves scrollbars where we need them, e.g. the short filter box in the screenshot below.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

before.mp4

After:

after.mp4

TEST PLAN

Manual/visual tire kicking.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-io
Copy link

codecov-io commented Jan 13, 2021

Codecov Report

Merging #12479 (50046e7) into master (e47350e) will decrease coverage by 7.95%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12479      +/-   ##
==========================================
- Coverage   66.82%   58.87%   -7.96%     
==========================================
  Files        1015      959      -56     
  Lines       49555    46791    -2764     
  Branches     5079     4341     -738     
==========================================
- Hits        33116    27548    -5568     
- Misses      16309    19243    +2934     
+ Partials      130        0     -130     
Flag Coverage Δ
cypress 50.99% <ø> (-0.01%) ⬇️
javascript ?
python 63.31% <ø> (-0.78%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...uperset-frontend/src/dashboard/util/dnd-reorder.js 0.00% <0.00%> (-100.00%) ⬇️
...rset-frontend/src/dashboard/util/getEmptyLayout.js 0.00% <0.00%> (-100.00%) ⬇️
...dashboard/components/resizable/ResizableHandle.jsx 0.00% <0.00%> (-100.00%) ⬇️
.../src/dashboard/util/getFilterScopeFromNodesTree.js 0.00% <0.00%> (-93.48%) ⬇️
...set-frontend/src/views/CRUD/alert/ExecutionLog.tsx 11.76% <0.00%> (-88.24%) ⬇️
...src/dashboard/components/gridComponents/Header.jsx 10.52% <0.00%> (-86.85%) ⬇️
superset-frontend/src/components/IconTooltip.tsx 13.33% <0.00%> (-86.67%) ⬇️
...rc/dashboard/components/gridComponents/Divider.jsx 13.33% <0.00%> (-86.67%) ⬇️
...end/src/SqlLab/components/ExploreResultsButton.jsx 8.00% <0.00%> (-84.00%) ⬇️
...nd/src/views/CRUD/data/query/QueryPreviewModal.tsx 14.70% <0.00%> (-82.97%) ⬇️
... and 405 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e47350e...50046e7. Read the comment docs.

@ktmud
Copy link
Member

ktmud commented Jan 13, 2021

@rusackas I think my solution in #12478 is more robust. Wdyt?

@rusackas rusackas changed the title flexbox ftw fix: removing dashboard scrollbars Jan 13, 2021
@rusackas
Copy link
Member Author

rusackas commented Jan 13, 2021

@rusackas I think my solution in #12478 is more robust. Wdyt?

Agreed. Less LESS always wins my vote. And putting scrollbars explicitly where needed seems ideal. Nice work :D

Closing in favor of #12478

@rusackas rusackas closed this Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants