Compare commits

..

No commits in common. "041c26283b911fc9beebd0f513002d18158003bd" and "b7d7a3963aae6c852119e5088053f1fcab41ba8b" have entirely different histories.

1 changed files with 51 additions and 40 deletions

View File

@ -57,8 +57,11 @@ export function WeatherSearchForm() {
<AlertCircle className="inline w-4 h-4 text-red-500 mt-0.5" />
<p className="text-red-500 text-xs">{inputError}</p>
</div>
)
}
<div className='flex gap-2'>
<Button type="submit" disabled={isLoading || !city.trim()} className="mt-4 w-full">
{isLoading ? <>
@ -72,10 +75,18 @@ export function WeatherSearchForm() {
{currentWeather && (
<Button type="button" variant="outline" onClick={refreshWeather} disabled={isLoading} className="mt-4 w-full" title='刷新数据'>
<RefreshCw className={cn("w-5 h-5", isLoading && "animate-spin")} />
</Button>
)}
</div>
</form>
</div>
)
}
}