diff --git a/src/pages/generate/index.css b/src/pages/generate/index.css
index 1b7b3e3..0438386 100644
--- a/src/pages/generate/index.css
+++ b/src/pages/generate/index.css
@@ -46,28 +46,42 @@
}
.generate-success {
- text-align: center;
- padding: 60rpx;
+ position: relative;
+ width: 100%;
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
}
.result-container {
- margin-bottom: 60rpx;
+ flex: 1;
+ position: relative;
+ width: 100%;
+ height: 100%;
}
.success-text {
+ position: absolute;
+ top: 60rpx;
+ left: 50%;
+ transform: translateX(-50%);
font-size: 40rpx;
- color: #34c759;
+ color: white;
font-weight: 600;
- margin-bottom: 40rpx;
+ z-index: 10;
+ background: rgba(0, 0, 0, 0.5);
+ padding: 20rpx 40rpx;
+ border-radius: 25rpx;
+}
+
+.result-media {
+ width: 100%;
+ height: 100%;
}
.result-image {
- width: 500rpx;
- height: 500rpx;
- margin: 0 auto;
- border-radius: 12rpx;
- overflow: hidden;
- box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1);
+ width: 100%;
+ height: 100%;
}
.result-image image {
@@ -75,6 +89,11 @@
height: 100%;
}
+.result-video {
+ width: 100%;
+ height: 100%;
+}
+
.generate-error {
text-align: center;
padding: 60rpx;
@@ -106,6 +125,16 @@
margin-top: 60rpx;
}
+.generate-success .action-buttons {
+ position: absolute;
+ bottom: 80rpx;
+ left: 50%;
+ transform: translateX(-50%);
+ z-index: 10;
+ padding: 0 40rpx;
+ box-sizing: border-box;
+}
+
.btn-primary {
flex: 1;
background-color: #FFD67A;
diff --git a/src/pages/history/index.css b/src/pages/history/index.css
index 2848340..0fb7f83 100644
--- a/src/pages/history/index.css
+++ b/src/pages/history/index.css
@@ -123,7 +123,6 @@
align-items: center;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
border: 1rpx solid #f0f0f0;
- transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
diff --git a/src/pages/history/index.tsx b/src/pages/history/index.tsx
index 662c659..71aff57 100644
--- a/src/pages/history/index.tsx
+++ b/src/pages/history/index.tsx
@@ -129,18 +129,17 @@ export default function History() {
开始创作你的第一个作品吧!{'\n'}所有的处理记录都会保存在这里
) : (
- records.map((record, index) => (
+ records.map((record) => (
handleItemClick(record)}
- style={{ animationDelay: `${index * 0.1}s` }}
>
{record.status === 'completed' && record.outputResult ? (
) : (