Add a field row component
This commit is contained in:
parent
542fe6634b
commit
8a42f93dd2
11
app/src/frontend/building/data-components/field-row.css
Normal file
11
app/src/frontend/building/data-components/field-row.css
Normal file
@ -0,0 +1,11 @@
|
||||
.field-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-evenly;
|
||||
justify-items: left;
|
||||
}
|
||||
|
||||
/* make all row elements the same width */
|
||||
.field-row * {
|
||||
flex: 1 1 0px;
|
||||
}
|
11
app/src/frontend/building/data-components/field-row.tsx
Normal file
11
app/src/frontend/building/data-components/field-row.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import React from 'react'
|
||||
|
||||
import './field-row.css';
|
||||
|
||||
export function FieldRow({children}) {
|
||||
return (
|
||||
<div className="field-row">
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue
Block a user