Skip to content

Commit

Permalink
chore: changes toggle button ui
Browse files Browse the repository at this point in the history
  • Loading branch information
towfiqi committed Nov 3, 2023
1 parent d3d336f commit 994afbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/settings/ScraperSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const ScraperSettings = ({ settings, settingsError, updateSettings }:ScraperSett
<small className=' text-gray-500 pt-2 block'>This option requires Server/Docker Instance Restart to take Effect.</small>
</div>
<div className="settings__section__input mb-5">
<label className="relative inline-flex items-center cursor-pointer">
<label className="relative inline-flex items-center cursor-pointer w-full justify-between">
<span className="text-sm font-medium text-gray-900 dark:text-gray-300 w-56">Auto Retry Failed Keyword Scrape</span>
<input
type="checkbox"
Expand All @@ -120,11 +120,11 @@ const ScraperSettings = ({ settings, settingsError, updateSettings }:ScraperSett
className="sr-only peer"
onChange={() => updateSettings('scrape_retry', !settings.scrape_retry)}
/>
<div className="relative rounded-3xl w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4
<div className="relative rounded-3xl w-9 h-5 bg-gray-200 peer-focus:outline-none peer-focus:ring-4
peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800rounded-full peer dark:bg-gray-700
peer-checked:after:translate-x-full peer-checked:after:border-white after:content-['']
after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300
after:border after:rounded-full after:h-5 after:w-5
after:border after:rounded-full after:h-4 after:w-4
after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>

</label>
Expand Down

0 comments on commit 994afbc

Please sign in to comment.