mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 08:40:03 +02:00
frontend: styling other components
This commit is contained in:
parent
82a21f1e5d
commit
2951a73883
@ -1,3 +1,7 @@
|
|||||||
|
body {
|
||||||
|
min-width: 576px;
|
||||||
|
max-width: 1200px;
|
||||||
|
}
|
||||||
input.instantUpdate {
|
input.instantUpdate {
|
||||||
background-color: rgba(255, 0, 0, 0.1);
|
background-color: rgba(255, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="col-5 align-items-center asyncMethodComponent"
|
className="align-items-center asyncMethodComponent"
|
||||||
id={parent_path.concat('.' + name)}>
|
id={parent_path.concat('.' + name)}>
|
||||||
{process.env.NODE_ENV === 'development' && (
|
{process.env.NODE_ENV === 'development' && (
|
||||||
<p>Render count: {renderCount.current}</p>
|
<p>Render count: {renderCount.current}</p>
|
||||||
|
@ -31,7 +31,7 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
|
|||||||
)}
|
)}
|
||||||
<DocStringComponent docString={docString} />
|
<DocStringComponent docString={docString} />
|
||||||
<Row>
|
<Row>
|
||||||
<Col className="col-5 d-flex align-items-center">
|
<Col className="d-flex align-items-center">
|
||||||
<InputGroup.Text>{name}</InputGroup.Text>
|
<InputGroup.Text>{name}</InputGroup.Text>
|
||||||
<Form.Select
|
<Form.Select
|
||||||
aria-label="Default select example"
|
aria-label="Default select example"
|
||||||
|
@ -54,7 +54,7 @@ export const MethodComponent = React.memo((props: MethodProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="col-5 align-items-center methodComponent"
|
className="align-items-center methodComponent"
|
||||||
id={parent_path.concat('.' + name)}>
|
id={parent_path.concat('.' + name)}>
|
||||||
{process.env.NODE_ENV === 'development' && (
|
{process.env.NODE_ENV === 'development' && (
|
||||||
<p>Render count: {renderCount.current}</p>
|
<p>Render count: {renderCount.current}</p>
|
||||||
|
@ -245,7 +245,6 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => {
|
|||||||
<p>Render count: {renderCount.current}</p>
|
<p>Render count: {renderCount.current}</p>
|
||||||
)}
|
)}
|
||||||
<DocStringComponent docString={docString} />
|
<DocStringComponent docString={docString} />
|
||||||
<div className="row">
|
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<InputGroup>
|
<InputGroup>
|
||||||
{showName && <InputGroup.Text>{name}</InputGroup.Text>}
|
{showName && <InputGroup.Text>{name}</InputGroup.Text>}
|
||||||
@ -272,6 +271,5 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -56,8 +56,6 @@ export const StringComponent = React.memo((props: StringComponentProps) => {
|
|||||||
<p>Render count: {renderCount.current}</p>
|
<p>Render count: {renderCount.current}</p>
|
||||||
)}
|
)}
|
||||||
<DocStringComponent docString={docString} />
|
<DocStringComponent docString={docString} />
|
||||||
<div className="row">
|
|
||||||
<div className="col-5 d-flex">
|
|
||||||
<InputGroup>
|
<InputGroup>
|
||||||
<InputGroup.Text>{name}</InputGroup.Text>
|
<InputGroup.Text>{name}</InputGroup.Text>
|
||||||
<Form.Control
|
<Form.Control
|
||||||
@ -72,7 +70,5 @@ export const StringComponent = React.memo((props: StringComponentProps) => {
|
|||||||
/>
|
/>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user