Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Slider Ui #127

Merged
merged 1 commit into from
May 15, 2024
Merged
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
2 changes: 1 addition & 1 deletion client/components/checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const NextCheckbox = ({ defaultChecked, onChange }) => {
return (
<label className="relative inline-flex cursor-pointer items-center">
<input type="checkbox" value="" checked={isCustomSelected} className="peer sr-only" onChange={handleCheckboxChange} />
<div className={`peer flex h-8 items-center gap-4 rounded-full bg-orange-600 px-3 ${isCustomSelected ? 'peer-checked:bg-stone-600 peer-checked:after:translate-x-full' : ''} after:absolute after:left-1 after: after:h-6 after:w-20 after:rounded-full after:bg-white/40 after:transition-all after:content-[''] peer-focus:outline-none dark:border-slate-600 dark:bg-slate-700 text-sm text-white`}>
<div className={`peer flex h-8 items-center gap-4 rounded-full bg-orange-600 px-3 ${isCustomSelected ? 'peer-checked:bg-stone-600 peer-checked:after:translate-x-full' : ''} after:absolute after:left-1 after: after:h-7 after:w-20 after:rounded-full after:bg-white/40 after:transition-all after:content-[''] peer-focus:outline-none dark:border-slate-600 dark:bg-slate-700 text-sm text-white`}>
<span>Pretrained</span>
<span>Custom</span>
</div>
Expand Down
Loading