style(HomePage): 调整签到按钮的样式和间距
优化签到按钮的布局,减少间距并调整按钮宽度,以提升页面美观性和一致性
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -66,12 +66,12 @@ | ... | @@ -66,12 +66,12 @@ |
| 66 | <p class="text-green-600 text-sm">+5 积分已添加到您的账户</p> | 66 | <p class="text-green-600 text-sm">+5 积分已添加到您的账户</p> |
| 67 | </div> | 67 | </div> |
| 68 | <template v-else> | 68 | <template v-else> |
| 69 | - <div class="flex space-x-3 overflow-x-auto py-2"> | 69 | + <div class="flex space-x-2 py-2"> |
| 70 | <button | 70 | <button |
| 71 | v-for="checkInType in checkInTypes" | 71 | v-for="checkInType in checkInTypes" |
| 72 | :key="checkInType.id" | 72 | :key="checkInType.id" |
| 73 | :class="[ | 73 | :class="[ |
| 74 | - 'flex-shrink-0 flex flex-col items-center p-3 rounded-lg transition-colors', | 74 | + 'flex-1 flex flex-col items-center p-2 rounded-lg transition-colors', |
| 75 | selectedCheckIn?.id === checkInType.id | 75 | selectedCheckIn?.id === checkInType.id |
| 76 | ? 'bg-green-100 border border-green-200' | 76 | ? 'bg-green-100 border border-green-200' |
| 77 | : 'bg-white/70 border border-gray-100 hover:bg-white' | 77 | : 'bg-white/70 border border-gray-100 hover:bg-white' | ... | ... |
-
Please register or login to post a comment