fix: 修复样式问题
This commit is contained in:
parent
a11932e2bd
commit
870991d81d
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,18 +129,17 @@ export default function History() {
|
|||
<Text className='empty-desc'>开始创作你的第一个作品吧!{'\n'}所有的处理记录都会保存在这里</Text>
|
||||
</View>
|
||||
) : (
|
||||
records.map((record, index) => (
|
||||
records.map((record) => (
|
||||
<View
|
||||
key={record.id}
|
||||
className='history-item'
|
||||
onClick={() => handleItemClick(record)}
|
||||
style={{ animationDelay: `${index * 0.1}s` }}
|
||||
>
|
||||
<View className='item-thumbnail'>
|
||||
{record.status === 'completed' && record.outputResult ? (
|
||||
<Image
|
||||
className='thumbnail-image'
|
||||
src={Array.isArray(record.outputResult) ? record.outputResult[0] : record.outputResult}
|
||||
src={record.outputUrl || record.inputImageUrl}
|
||||
mode='aspectFill'
|
||||
/>
|
||||
) : (
|
||||
|
|
|
|||
Loading…
Reference in New Issue