MetaMask/snaps

`Section` with horizontal alignment crushes first element

Opened this issue · 0 comments

When using a Section with a horizontal alignment, it seems that the first element of the section always gets completely crushed, rather than both elements being spread out like they might be in a regular Flexbox container. Is this expected behaviour? Code:

<Section direction='horizontal'>
  <Text>First</Text>
  <Text>Second text that wraps so we can see the alignment</Text>
</Section>

Result:

image

This is what it looks like with three text elements:

image