frontend: styling other components

This commit is contained in:
Mose Müller
2023-08-08 16:39:29 +02:00
parent 82a21f1e5d
commit 2951a73883
6 changed files with 44 additions and 46 deletions

View File

@@ -56,23 +56,19 @@ export const StringComponent = React.memo((props: StringComponentProps) => {
<p>Render count: {renderCount.current}</p>
)}
<DocStringComponent docString={docString} />
<div className="row">
<div className="col-5 d-flex">
<InputGroup>
<InputGroup.Text>{name}</InputGroup.Text>
<Form.Control
type="text"
value={inputString}
disabled={readOnly}
name={name}
onChange={handleChange}
onKeyDown={handleKeyDown}
onBlur={handleBlur}
className={isInstantUpdate && !readOnly ? 'instantUpdate' : ''}
/>
</InputGroup>
</div>
</div>
<InputGroup>
<InputGroup.Text>{name}</InputGroup.Text>
<Form.Control
type="text"
value={inputString}
disabled={readOnly}
name={name}
onChange={handleChange}
onKeyDown={handleKeyDown}
onBlur={handleBlur}
className={isInstantUpdate && !readOnly ? 'instantUpdate' : ''}
/>
</InputGroup>
</div>
);
});