fixing label width issue for the list view toggle
This commit is contained in:
parent
fa1fb4e87f
commit
0d128ffac7
@ -47,7 +47,7 @@ export type InputElementProperties<T> = {
|
||||
}
|
||||
|
||||
export const ToggleSwitch = ({ value, onChange, inputRef, children }: InputElementProperties<boolean>) => {
|
||||
return <label>
|
||||
return <label className="label-fix">
|
||||
<span className="check-box check-box-row mb-2">
|
||||
{children && <b>{children}</b>}
|
||||
<input ref={inputRef} defaultChecked={value} onChange={onChange} type='checkbox' />
|
||||
|
@ -751,3 +751,7 @@ input[type=file]::file-selector-button:hover {
|
||||
.f-b0{
|
||||
flex-basis: 0px !important;
|
||||
}
|
||||
.label-fix{
|
||||
display: block;
|
||||
width: fit-content;
|
||||
}
|
Loading…
Reference in New Issue
Block a user