mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
frontend: updating width of components
This commit is contained in:
parent
a5eb9d40a2
commit
e2ed88fc82
@ -1,13 +1,5 @@
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import {
|
||||
OverlayTrigger,
|
||||
Badge,
|
||||
Tooltip,
|
||||
InputGroup,
|
||||
Form,
|
||||
Row,
|
||||
Col
|
||||
} from 'react-bootstrap';
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { InputGroup, Form, Row, Col } from 'react-bootstrap';
|
||||
import { socket } from '../socket';
|
||||
import { DocStringComponent } from './DocStringComponent';
|
||||
|
||||
@ -40,7 +32,7 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
<DocStringComponent docString={docString} />
|
||||
<Row>
|
||||
<Col className="col-2 d-flex align-items-center">
|
||||
<Col className="col-5 d-flex align-items-center">
|
||||
<InputGroup.Text>{name}</InputGroup.Text>
|
||||
<Form.Select
|
||||
aria-label="Default select example"
|
||||
|
@ -6,7 +6,7 @@ import { DocStringComponent } from './DocStringComponent';
|
||||
interface MethodProps {
|
||||
name: string;
|
||||
parent_path: string;
|
||||
parameters: { [key: string]: string };
|
||||
parameters: Record<string, string>;
|
||||
docString?: string;
|
||||
hideOutput?: boolean;
|
||||
}
|
||||
@ -61,7 +61,7 @@ export const MethodComponent = React.memo((props: MethodProps) => {
|
||||
|
||||
return (
|
||||
<div
|
||||
className="col-3 align-items-center method"
|
||||
className="col-5 align-items-center method"
|
||||
id={parent_path.concat('.' + name)}>
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
<h5 onClick={() => setHideOutput(!hideOutput)} style={{ cursor: 'pointer' }}>
|
||||
|
@ -210,7 +210,7 @@ export const NumberComponent = React.memo((props: ButtonComponentProps) => {
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
<DocStringComponent docString={docString} />
|
||||
<div className="row">
|
||||
<div className="col-2 d-flex">
|
||||
<div className="col-5 d-flex">
|
||||
<InputGroup>
|
||||
<InputGroup.Text>{name}</InputGroup.Text>
|
||||
<Form.Control
|
||||
|
Loading…
x
Reference in New Issue
Block a user