fix: update button styling and image handling in history and result components

This commit is contained in:
iHeyTang
2025-09-28 13:03:03 +08:00
parent df6db4d1b6
commit 4e5dc53741
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { Image, View,Text } from '@tarojs/components';
import { Image, View, Text } from '@tarojs/components';
import { navigateBack } from '@tarojs/taro';
import { useEffect, useState } from 'react';
@@ -63,7 +63,7 @@ const GeneratingComponent: React.FC<GeneratingComponentProps> = ({ task }) => {
<View className="progress-inner">
{/* 预览图片或占位符 */}
{task?.inputImageUrl ? (
<Image className="preview-image" src={task.inputImageUrl} mode="aspectFill" />
<Image className="preview-image" src={task.inputImageUrl.split(',')[0]} mode="aspectFill" />
) : (
<View className="preview-placeholder">
<View className="placeholder-icon">🎨</View>
@@ -73,7 +73,7 @@ const GeneratingComponent: React.FC<GeneratingComponentProps> = ({ task }) => {
<View className="progress-overlay" />
{/* 光扫描动画 */}
<View className="scan-light" />
<View className="scan-progress" >{Math.round(progress)}%</View>
<View className="scan-progress">{Math.round(progress)}%</View>
</View>
</View>
</View>