Make layouts flow horizontally by default (#18)

This commit is contained in:
Evan Simkowitz 2024-06-04 16:35:32 -07:00 committed by GitHub
parent c3e71c5c7d
commit 29e209e0b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ export function newLayoutNode<T>(
): LayoutNode<T> {
const newNode: LayoutNode<T> = {
id: crypto.randomUUID(),
flexDirection: flexDirection ?? FlexDirection.Column,
flexDirection: flexDirection ?? FlexDirection.Row,
size,
children,
data,