優化手機版的提示文字

This commit is contained in:
2025-07-20 03:36:49 +08:00
parent c3d085ab4d
commit 7ec4a39a2f

View File

@@ -371,12 +371,12 @@ export default function WishCard({ wish }: WishCardProps) {
variant="ghost" variant="ghost"
size="sm" size="sm"
onClick={() => setShowSolutions(!showSolutions)} onClick={() => setShowSolutions(!showSolutions)}
className="text-indigo-200 hover:text-white hover:bg-indigo-700/50 px-2 py-1 transition-all duration-200 flex-shrink-0" className="text-indigo-200 hover:text-white hover:bg-indigo-700/50 px-1.5 sm:px-2 py-1 transition-all duration-200 flex-shrink-0"
> >
<span className="text-xs mr-1 hidden sm:inline"> <span className="text-xs mr-0.5 sm:mr-1">
{showSolutions ? "收起" : "展開"} {showSolutions ? "收起" : "展開"}
</span> </span>
{showSolutions ? <ChevronUp className="w-4 h-4" /> : <ChevronDown className="w-4 h-4" />} {showSolutions ? <ChevronUp className="w-3 h-3 sm:w-4 sm:h-4" /> : <ChevronDown className="w-3 h-3 sm:w-4 sm:h-4" />}
</Button> </Button>
</div> </div>
<div className="flex items-center gap-1.5 md:gap-2 flex-wrap"> <div className="flex items-center gap-1.5 md:gap-2 flex-wrap">