Row Gap #459
martinianol
started this conversation in
Show and tell
Row Gap
#459
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an issue I came across and took me a while to solve it so I'm sharing this with the community in case any one stumbles across it.
rstuite-table does not allow for row gap between rows. It just creates them one after each other
In order to solve this issue renderRow has to be used with a couple of tweaks.
Say we want a 48px row height (this is the visual content) and a row gap of 16px.
Firstly, rowHeight has to be set in Table with 64. hover should be set to false if not when hovering the whole 64px will be highlighted instead of the 48px of content we want.
Secondly, in renderRow, the component we pass needs to be set with a max-height of 48px
Screen.Recording.2023-09-14.at.10.49.33.mov
Beta Was this translation helpful? Give feedback.
All reactions