graphic-walker icon indicating copy to clipboard operation
graphic-walker copied to clipboard

Document how to make GraphicWalker responsively resize to parent container

Open MarcSkovMadsen opened this issue 1 year ago • 4 comments

I've tried everything I can think of but the GraphicWalker seems to come with a preferred height.

I would like the height to be responsively resized to the height of the container. How do I do that?

image

ps. I've tried setting style or height attribute of GraphicWalker component to no effect.

MarcSkovMadsen avatar Nov 05 '24 05:11 MarcSkovMadsen

Additional Context

For my app you can see what height different elements have in the video below.

https://github.com/user-attachments/assets/d06879a0-40ed-4be7-9e18-bb05c019aaf2

MarcSkovMadsen avatar Nov 05 '24 05:11 MarcSkovMadsen

For the TableWalker it would be extra beneficial to be able to take up the full window height responsively.

image

MarcSkovMadsen avatar Nov 06 '24 03:11 MarcSkovMadsen

Similar request as https://github.com/Kanaries/pygwalker/issues/645.

MarcSkovMadsen avatar Nov 06 '24 17:11 MarcSkovMadsen

Would be nice to at least make this max-height setting overridable since the TableWalker renders just fine without it:

https://github.com/Kanaries/graphic-walker/blob/d0356d4f45dc0e6b9ff7aa83a7ffab20ff3cf2be/packages/graphic-walker/src/components/dataTable/index.tsx#L403

philippjfr avatar Jan 29 '25 20:01 philippjfr