mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
frontend: updating NumberComponent styling
This commit is contained in:
parent
4d929afa79
commit
71ce898310
@ -8,7 +8,6 @@ import {
|
|||||||
Button
|
Button
|
||||||
} from 'react-bootstrap';
|
} from 'react-bootstrap';
|
||||||
import { socket } from '../socket';
|
import { socket } from '../socket';
|
||||||
import './NumberComponent.css';
|
|
||||||
|
|
||||||
interface ButtonComponentProps {
|
interface ButtonComponentProps {
|
||||||
name: string;
|
name: string;
|
||||||
@ -208,29 +207,34 @@ export const NumberComponent = React.memo((props: ButtonComponentProps) => {
|
|||||||
return (
|
return (
|
||||||
<div className={'component boolean'} id={parent_path.concat(name)}>
|
<div className={'component boolean'} id={parent_path.concat(name)}>
|
||||||
<p>Render count: {renderCount.current}</p>
|
<p>Render count: {renderCount.current}</p>
|
||||||
<InputGroup>
|
<div className="row">
|
||||||
<InputGroup.Text>{name}</InputGroup.Text>
|
<div className="col-2 d-flex">
|
||||||
<Form.Control
|
<InputGroup>
|
||||||
type="text"
|
<InputGroup.Text>{name}</InputGroup.Text>
|
||||||
value={value}
|
<Form.Control
|
||||||
readOnly={readOnly}
|
type="text"
|
||||||
name={name}
|
value={value}
|
||||||
onKeyDown={handleKeyDown}
|
readOnly={readOnly}
|
||||||
/>
|
name={name}
|
||||||
<div className="d-flex flex-column">
|
onKeyDown={handleKeyDown}
|
||||||
<Button
|
/>
|
||||||
style={{ padding: '0.2em 8px', fontSize: '0.70rem' }}
|
</InputGroup>
|
||||||
// className="mb-1"
|
<div className="d-flex flex-column">
|
||||||
variant="outline-secondary">
|
<Button
|
||||||
+
|
style={{ padding: '0.2em 6px', fontSize: '0.70rem' }}
|
||||||
</Button>
|
// className="mb-1"
|
||||||
<Button
|
variant="outline-secondary">
|
||||||
style={{ padding: '0.2em 8px', fontSize: '0.70rem' }}
|
+
|
||||||
variant="outline-secondary">
|
</Button>
|
||||||
-
|
<Button
|
||||||
</Button>
|
style={{ padding: '0.2em 6px', fontSize: '0.70rem' }}
|
||||||
|
variant="outline-secondary">
|
||||||
|
-
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</InputGroup>
|
</div>
|
||||||
|
|
||||||
{docString && (
|
{docString && (
|
||||||
<OverlayTrigger placement="bottom" overlay={tooltip}>
|
<OverlayTrigger placement="bottom" overlay={tooltip}>
|
||||||
<Badge pill className="tooltip-trigger" bg="light" text="dark">
|
<Badge pill className="tooltip-trigger" bg="light" text="dark">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user