diff --git a/src/components/CompleteBaziAnalysis.tsx b/src/components/CompleteBaziAnalysis.tsx index cef41ab..a7264d2 100644 --- a/src/components/CompleteBaziAnalysis.tsx +++ b/src/components/CompleteBaziAnalysis.tsx @@ -280,25 +280,24 @@ const CompleteBaziAnalysis: React.FC = ({ birthDate,
- {/* 下载按钮 */} -
- -
- - {/* AI解读按钮 - 独立占用全宽 */} -
- setShowAIConfig(true)} - className="w-full" - /> + {/* 下载按钮和AI解读按钮 */} +
+
+ setShowAIConfig(true)} + /> +
+
+ +
{/* 标题和基本信息 */} diff --git a/src/components/CompleteYijingAnalysis.tsx b/src/components/CompleteYijingAnalysis.tsx index 1272a05..3a60f9b 100644 --- a/src/components/CompleteYijingAnalysis.tsx +++ b/src/components/CompleteYijingAnalysis.tsx @@ -268,25 +268,24 @@ const CompleteYijingAnalysis: React.FC = ({
- {/* 下载按钮 */} -
- -
- - {/* AI解读按钮 - 独立占用全宽 */} -
- setShowAIConfig(true)} - className="w-full" - /> + {/* 下载按钮和AI解读按钮 */} +
+
+ setShowAIConfig(true)} + /> +
+
+ +
{/* 标题和基本信息 */} diff --git a/src/components/CompleteZiweiAnalysis.tsx b/src/components/CompleteZiweiAnalysis.tsx index ba9e2de..f5d9159 100644 --- a/src/components/CompleteZiweiAnalysis.tsx +++ b/src/components/CompleteZiweiAnalysis.tsx @@ -583,25 +583,24 @@ const CompleteZiweiAnalysis: React.FC = ({ birthDate
- {/* 下载按钮 */} -
- -
- - {/* AI解读按钮 - 独立占用全宽 */} -
- setShowAIConfig(true)} - className="w-full" - /> + {/* 下载按钮和AI解读按钮 */} +
+
+ setShowAIConfig(true)} + /> +
+
+ +
{/* 标题和基本信息 */} diff --git a/src/components/ui/AIInterpretationButton.tsx b/src/components/ui/AIInterpretationButton.tsx index 97e23dd..855bbd0 100644 --- a/src/components/ui/AIInterpretationButton.tsx +++ b/src/components/ui/AIInterpretationButton.tsx @@ -199,7 +199,7 @@ const AIInterpretationButton: React.FC = ({ return (
{/* AI解读按钮区域 */} -
+
= ({ }} disabled={isLoading || (!isConfigValid && !interpretation)} className={cn( - 'min-h-[40px] px-3 sm:px-6 text-xs sm:text-sm flex-shrink-0', + 'min-h-[40px] min-w-[100px] px-3 sm:px-6 text-xs sm:text-sm flex-shrink-0 whitespace-nowrap', !isConfigValid && !interpretation && 'opacity-50 cursor-not-allowed' )} > @@ -241,7 +241,7 @@ const AIInterpretationButton: React.FC = ({ size="md" onClick={handleReinterpret} disabled={isLoading} - className="min-h-[40px] px-3 sm:px-4 flex items-center space-x-1 flex-shrink-0" + className="min-h-[40px] min-w-[100px] px-3 sm:px-4 flex items-center justify-center space-x-1 flex-shrink-0 whitespace-nowrap" > 重新解读 @@ -254,7 +254,7 @@ const AIInterpretationButton: React.FC = ({ variant="ghost" size="md" onClick={onConfigClick} - className="min-h-[40px] px-3 sm:px-4 flex items-center space-x-1 text-gray-500 hover:text-gray-700 flex-shrink-0" + className="min-h-[40px] min-w-[80px] px-3 sm:px-4 flex items-center justify-center space-x-1 text-gray-500 hover:text-gray-700 flex-shrink-0 whitespace-nowrap" > 配置