WIP: Components as Blocks: Custom width does not render well

Browser: Chrome 141.0.7390.123
OS: Windows

Hi,

It seems similar to this report, t I used a basic text element in the component and set a custom width and height for it. But in Gutenberg, the custom width is ignored and replaced with auto.

If the explanation is not enough, please view the following component as a block in Gutenberg. Loop index counter width not working as expected.

Hi @HOSEIN,

do you only see this issue in Gutenberg? If you add a component to the page via Bricks, and check it on the front end, is it working correctly there?

Because I can replicate it locally even without Gutenberg.

Best regards,
Matej

Hi @HOSEIN,

another update. Apparently I had cascade layers disabled. If I enable it, then I cannot replicate the issue anymore. Can you make sure that you have cascade layers disabled?

Thanks,
Matej

Hi @Matej,

do you only see this issue in Gutenberg? If you add a component to the page via Bricks, and check it on the front end, is it working correctly there?

Yes, the problem only exists in Gutenberg.

Can you make sure that you have cascade layers disabled?

I honestly don’t know if I should say active or inactive :joy: But it is active in practice.

It seems that the problem is with the CSS loading method. There is no problem with the inline style. Do you confirm?

Hi @HOSEIN,

Ah yeah, my bad, sorry for confused text :slight_smile: The way you have it is the way it is suppose to be :wink:

Yes, now I can see the issue and I’ve recorded it in our internal bug tracker. Thank you so much!

Matej

1 Like