fix: update button styling and image handling in history and result components
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user