Skip to content

Commit

Permalink
Merge pull request #47 from kieler/nre/flex
Browse files Browse the repository at this point in the history
Update option-inputs.tsx
  • Loading branch information
Drakae authored Nov 27, 2024
2 parents 7da3d71 + c892a90 commit 586e72e
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions extension/src-webview/options/components/option-inputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,19 @@ export function CheckOption(props: CheckOptionProps): VNode {
// The sprotty jsx function always puts an additional 'props' key around the element, requiring this hack.
props = (props as any as {props: CheckOptionProps}).props
return (
<label htmlFor={props.id} title={props.description ?? props.name}>
<input
class-options__input="true"
type="checkbox"
title={props.description ?? props.name}
id={props.id}
checked={props.value}
on-change={() => props.onChange(!props.value)}
/>
{props.name}
</label>
<div class-options__column="true">
<label htmlFor={props.id} title={props.description ?? props.name}>
<input
class-options__input="true"
type="checkbox"
title={props.description ?? props.name}
id={props.id}
checked={props.value}
on-change={() => props.onChange(!props.value)}
/>
{props.name}
</label>
</div>
);
}

Expand Down Expand Up @@ -191,4 +193,4 @@ export function DropDownMenuOption(props: DropDownMenuProps): VNode {
</select>
</div>
);
}
}

0 comments on commit 586e72e

Please sign in to comment.