优化页面样式,调整横轴格子输入框的标签文本,更新颜色统计标题及说明,提升用户界面友好性和可读性。

This commit is contained in:
Zylan
2025-04-26 11:57:22 +08:00
parent 3c5c4ec9b3
commit 669f8c0ffe

View File

@@ -1125,11 +1125,11 @@ export default function Home() {
<div className="w-full flex flex-col items-center space-y-5 sm:space-y-6">
{/* ++ HIDE Control Row in manual mode ++ */}
{!isManualColoringMode && (
<div className="w-full max-w-xl grid grid-cols-1 sm:grid-cols-4 gap-4 bg-white p-3 sm:p-4 rounded-lg shadow">
<div className="w-full max-w-2xl grid grid-cols-1 sm:grid-cols-4 gap-4 bg-white p-3 sm:p-4 rounded-lg shadow">
{/* Granularity Input */}
<div className="flex-1">
<label htmlFor="granularityInput" className="block text-xs sm:text-sm font-medium text-gray-700 mb-1 sm:mb-1.5">
(10-1000):
(10-1k):
</label>
<div className="flex items-center gap-2">
<input
@@ -1151,7 +1151,7 @@ export default function Home() {
{/* Similarity Threshold Slider */}
<div className="flex-1">
<label htmlFor="similarityThreshold" className="block text-xs sm:text-sm font-medium text-gray-700 mb-1 sm:mb-1.5">
: <span className="font-semibold text-purple-600">{similarityThreshold}</span>
: <span className="font-semibold text-purple-600">{similarityThreshold}</span>
</label>
<input
type="range"
@@ -1257,9 +1257,9 @@ export default function Home() {
{!isManualColoringMode && originalImageSrc && colorCounts && Object.keys(colorCounts).length > 0 && (
<div className="w-full max-w-2xl mt-6 bg-white p-4 rounded-lg shadow">
<h3 className="text-lg font-semibold mb-1 text-gray-700 text-center">
({paletteOptions[selectedPaletteKeySet]?.name || '未知色板'})
& ({paletteOptions[selectedPaletteKeySet]?.name || '未知色板'})
</h3>
<p className="text-xs text-center text-gray-500 mb-3">/: {totalBeadCount} </p>
<p className="text-xs text-center text-gray-500 mb-3">: {totalBeadCount} </p>
<ul className="space-y-1 max-h-60 overflow-y-auto pr-2 text-sm">
{Object.keys(colorCounts)
.sort(sortColorKeys)