ui: checkbox spacing

This commit is contained in:
nick-delirium 2025-03-05 17:10:21 +01:00
parent 69d1d88600
commit 95455f761b
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 2 additions and 3 deletions

View file

@ -77,13 +77,12 @@ function SaveSearchModal({ show, closeHandler, rename = false }: Props) {
className={cn('flex items-center', { disabled: savedSearch.exists() && savedSearch.userId !== userId })}>
<Checkbox
name="isPublic"
className="font-medium mr-3"
type="checkbox"
checked={savedSearch.isPublic}
onClick={onChangeOption}
/>
<div
className="flex items-center cursor-pointer select-none"
className="flex items-center cursor-pointer select-none ml-2"
onClick={() => searchStore.editSavedSearch({ isPublic: !savedSearch.isPublic })}
>
<Icon name="user-friends" size="16" />

View file

@ -7,7 +7,7 @@ interface Props {
[x: string]: any;
}
export default (props: Props) => {
const { className = '', label = '', ...rest } = props;
const { className = '', label, ...rest } = props;
return (
<AntCheckbox {...rest}>
{label}