Hidden components still taking up extra space [AEM form core component]
I am working on Adaptive form core component (version:1.1.64). I am using grid gap to set the gaps between the form fields, however the components which are set to hide in the form are still taking up spaces.
How to replicate the issue:
Set hide component using the author dialog:

In preview mode:

I found that the display: none was set to the component, but not to the component wrapper.

I tried to use cq:noDecoration to remove the wrapper element, but it broke the component edit functionality on author.
Is there any other way to fix this ?