自动点赞界面优化

This commit is contained in:
wong
2025-05-16 18:42:19 +08:00
parent 365bbe6cde
commit 671c523631
3 changed files with 102 additions and 152 deletions

View File

@@ -40,11 +40,11 @@ export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps
}
const incrementMaxLikes = () => {
onChange({ maxLikesPerDay: Math.min(formData.maxLikesPerDay + 10, 200) })
onChange({ maxLikesPerDay: Math.min(formData.maxLikesPerDay + 100, 10000) })
}
const decrementMaxLikes = () => {
onChange({ maxLikesPerDay: Math.max(formData.maxLikesPerDay - 10, 10) })
onChange({ maxLikesPerDay: Math.max(formData.maxLikesPerDay - 100, 10) })
}
const incrementFriendMaxLikes = () => {
@@ -124,7 +124,7 @@ export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps
id="max-likes"
type="number"
min={10}
max={200}
max={10000}
value={formData.maxLikesPerDay}
onChange={(e) => onChange({ maxLikesPerDay: Number.parseInt(e.target.value) || 10 })}
className="h-12 rounded-none border-x-0 border-gray-200 text-center"
@@ -143,7 +143,7 @@ export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps
<Plus className="h-5 w-5" />
</Button>
</div>
<p className="text-xs text-gray-500"></p>
<p className="text-xs text-gray-500">(10000)</p>
</div>
<div className="space-y-2">