style: improve descriptions' whitespace

This commit is contained in:
trafficlunar 2025-10-29 19:59:00 +00:00
parent f0df04d47c
commit 6ffb85c49c

View file

@ -211,7 +211,11 @@ export default async function MiiPage({ params }: Props) {
</div> </div>
{/* Description */} {/* Description */}
{mii.description && <p className="text-sm mt-2 ml-2 bg-white/50 p-3 rounded-lg border border-orange-200">{mii.description}</p>} {mii.description && (
<p className="text-sm mt-2 ml-2 bg-white/50 p-3 rounded-lg border border-orange-200 whitespace-break-spaces max-h-54 overflow-y-auto">
{mii.description}
</p>
)}
</div> </div>
{/* Buttons */} {/* Buttons */}