Skip to content

Commit

Permalink
style(Upload): 优化上传组件的样式,增加悬停背景色
Browse files Browse the repository at this point in the history
修改了上传组件的样式,使其在悬停时背景色变为灰色,提升用户体验。
  • Loading branch information
alanhe421 committed Dec 2, 2024
1 parent 15ba79c commit e139601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ function Upload() {

<div
className={`border-2 border-dashed rounded-lg p-8 text-center cursor-pointer transition-all
${dragActive ? 'border-blue-500 bg-blue-50' : 'border-gray-300 hover:border-gray-400'}`}
${dragActive ? 'border-blue-500 bg-blue-50' : 'border-gray-300 hover:border-gray-400'}
hover:bg-gray-50`}
onDragEnter={handleDrag}
onDragLeave={handleDrag}
onDragOver={handleDrag}
Expand Down

0 comments on commit e139601

Please sign in to comment.