From 3008f0fcb87992077af811f9842793610fc52239 Mon Sep 17 00:00:00 2001 From: zuoxiao <zuoxiao> Date: 星期二, 29 四月 2025 16:07:00 +0800 Subject: [PATCH] 优化首页项目切换逻辑,添加确认弹窗以提升用户体验;更新样式以增强项目选择的可视化效果。 --- pages/home/home.wxss | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) diff --git a/pages/home/home.wxss b/pages/home/home.wxss index 71b6d7c..2be6c16 100644 --- a/pages/home/home.wxss +++ b/pages/home/home.wxss @@ -755,21 +755,33 @@ } .current-project { - display: flex; - flex-direction: column; - justify-content: center; - margin-left: 20rpx; - margin-right: 10rpx; - margin-top: 10rpx; + display: flex; + align-items: center; + margin-left: 20rpx; +margin-top: 10rpx; + } .current-project text { - font-size: 28rpx; - color: #ffffff; - font-weight: bold; - background-color: rgba(255, 255, 255, 0.2); - border-radius: 15rpx; - padding: 6rpx 14rpx; + color: #fff; + font-size: 32rpx; + margin-right: 10rpx; +} + +.switch-project { + display: flex; + align-items: center; + justify-content: center; + width: 40rpx; + height: 40rpx; + background-color: rgba(255, 255, 255, 0.2); + border-radius: 50%; + margin-left: 5rpx; +} + +.switch-icon { + width: 24rpx; + height: 24rpx; } .avatar-project-container { -- Gitblit v1.8.0