Skip to content

Code Insights: Fix bad scrollable legend layout for small amount of legends

Administrator requested to merge vk/fix-bad-legend-scroll-layout into main

Created by: vovakulikov

Prior to this PR we again got a problem with overflowed content in the insight card legend block layout. The problem is even if the legend block doesn't have overflowed items we still have a scrollbar there. This problem doesn't appear in the Safari browser (that's the reason why I missed this, remained for myself - do not forget to test layout issues in different browsers)

https://user-images.githubusercontent.com/18492575/146811513-e353c32e-faea-49e1-857d-6f0db0be7eeb.mov

This PR changes the scroll box component in a way to avoid this problem in Chrome, Safari, and Firefox.

Merge request reports

Loading