Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flex direction 'row' not supported? #114

Open
larissa-n opened this issue Sep 19, 2020 · 2 comments
Open

Flex direction 'row' not supported? #114

larissa-n opened this issue Sep 19, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@larissa-n
Copy link

Worked off the example to align elements horizontally with flexDirection: "row", which does not turn out as expected:

https://codesandbox.io/s/jolly-silence-0jmjv?file=/src/App.js

Screen Shot 2020-09-19 at 10 56 59 AM

@pierpo
Copy link
Owner

pierpo commented Sep 21, 2020

Hi,

Thank you for reporting this, and thank you for the CodePen!

It looks like it is a mis-usage of the ArcherContainer style props (which probably shouldn't be exposed, actually).

I'll have a deeper look when I'll have more time, thank you very much for reporting!

@pierpo pierpo added the bug Something isn't working label Sep 21, 2020
@pierpo
Copy link
Owner

pierpo commented Mar 30, 2022

Hey, it's been forever but I finally had a look at this. Indeed, the style property does really not make sense on ArcherContainer. I guess it could make sense in some cases but not in general. You should wrap in a div inside ArcherContainer. I need to think about how we can make this clearer.

Oh, bad news though: the layout you might looking for is currently not possible with react-archer 😢

Here's the result I get
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants