Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/movehub-extension/components/ColorSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ export function ColorSelector({ device }: IMoveHubPanelProps) {
<div className="led-color-main-container">
<div className="led-color-text" style={{ display: 'flex' }}>
<p style={{ margin: '8px 0px' }}>Current color</p>
{(selectedColor!=='lightblue') ? <ColoredCircleWithText color={selectedColor} text={selectedColor} /> : <ColoredCircleWithText color={selectedColor} text={'light blue'} />}
{(selectedColor !== 'lightblue') ? <ColoredCircleWithText color={selectedColor} text={''} /> : <ColoredCircleWithText color={selectedColor} text={''} />}
</div>
<div className="color-selector-container">
<div className="led-color-selector-container">
<select
className="color-selector"
id="color-selector"
className="led-color-selector"
id="led-color-selector"
value={''}
onChange={handleColorChange}
>
Expand All @@ -75,7 +75,7 @@ export function ColorSelector({ device }: IMoveHubPanelProps) {
</option>
{colors.map(color => (
<option key={color} value={color}>
{(color !=='lightblue') ? color : 'light blue'}
{(color !== 'lightblue') ? color : 'light blue'}
</option>
))}
</select>
Expand Down
2 changes: 1 addition & 1 deletion src/movehub-extension/components/Frankie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const FrankieSVGUrl = `data:image/svg+xml;base64,${btoa(FrankieSVG)}`;
export default function Frankie () {
return (
<div>
<img src={FrankieSVGUrl} alt="Frankie schematics" height="200px" />
<img src={FrankieSVGUrl} alt="Frankie schematics" height="220px" />
</div>
);
};
10 changes: 5 additions & 5 deletions src/movehub-extension/components/FrankieComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ import Frankie from './Frankie';
export function FrankieComponent({ device }: IMoveHubPanelProps) {
return (
<>
<div className="vernie-control-grid-container">
<div className="vernie-control-grid-item-right">
<div className="lego-build-control-grid-container">
<div className="lego-build-control-grid-item-left">
<Frankie />
</div>
<div className="lego-build-control-grid-item-right">
<h4
style={{
color: 'var(--jp-accept-color-normal)',
Expand Down Expand Up @@ -55,9 +58,6 @@ export function FrankieComponent({ device }: IMoveHubPanelProps) {
/>
<ColorSelector device={device} />
</div>
<div className="vernie-control-grid-item-right">
<Frankie />
</div>
</div>
</>
);
Expand Down
10 changes: 5 additions & 5 deletions src/movehub-extension/components/MoveHubComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ export interface IHubControlProps {
export function MoveHubComponent({ device }: IMoveHubPanelProps) {
return (
<>
<div className="vernie-control-grid-container">
<div className="vernie-control-grid-item-left">
<div className="lego-build-control-grid-container">
<div className="lego-build-control-grid-item-left">
<MoveHub />
</div>
<div className="lego-build-control-grid-item-right">
<h4
style={{
color: 'var(--jp-accept-color-normal)',
Expand Down Expand Up @@ -59,9 +62,6 @@ export function MoveHubComponent({ device }: IMoveHubPanelProps) {
/>
<ColorSelector device={device} />
</div>
<div className="vernie-control-grid-item-right">
<MoveHub />
</div>
</div>
</>
);
Expand Down
8 changes: 2 additions & 6 deletions src/movehub-extension/components/MoveHubPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,15 @@ export interface IHubControlProps {

export function MoveHubInfos(props: { device: MoveHub }) {
return (
<>
<div className="lego-movehub-infos-container">
<DeviceInfoTable moveHub={props.device} />
</div>
</>
<DeviceInfoTable moveHub={props.device} />
);
}

export function MoveHubPanel({ device }: IMoveHubPanelProps) {
return (
<div>
<MoveHubInfos device={device} />
<LegoBuildSpecific device={device} />
<MoveHubInfos device={device} />
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/movehub-extension/components/Vernie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Vernie () {
justifyContent: 'center'
}}
>
<img src={VernieSVGUrl} alt="Vernie schematics" height="300px" />
<img src={VernieSVGUrl} alt="Vernie schematics" height="250px" />
</div>
);
};
12 changes: 7 additions & 5 deletions src/movehub-extension/components/VernieComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export function VernieComponent({ device }: IMoveHubPanelProps) {
return (
<>
<div className="vernie-control-grid-container">

<div className="vernie-control-grid-item-left">
<Vernie />
</div>
<div className="vernie-control-grid-item-center">
<h4
style={{
color: 'var(--jp-accept-color-normal)',
Expand Down Expand Up @@ -49,19 +53,17 @@ export function VernieComponent({ device }: IMoveHubPanelProps) {
buttonText2={'Left'}
type={'angle'}
port={'D'}
caution="⚠ The angle for Port D should be in range: [0°, 110°]."
caution=""
dutyCycleDirect={-100}
dutyCycleIndirect={100}
/>
<ColorSelector device={device} />
</div>
<div className="vernie-control-grid-item-right">
<Vernie />
</div>

<div className="vernie-control-grid-item-left">
<div className="vernie-control-grid-item-right">
<ManualControl moveHub={device} />
</div>

</div>
</>
);
Expand Down
Loading