fix(voice): add per-lesson failure recovery
This commit is contained in:
@@ -386,6 +386,10 @@
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.voice-record-status-failed {
|
||||
color: #b8322d;
|
||||
}
|
||||
|
||||
.voice-record-transcript,
|
||||
.voice-record-empty {
|
||||
margin-top: 12rpx;
|
||||
@@ -434,6 +438,61 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.voice-record-failure-actions {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
gap: 12rpx;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
|
||||
.voice-record-retry-button,
|
||||
.voice-record-delete-button {
|
||||
display: flex;
|
||||
flex: 1 1 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 0;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
height: 62rpx;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 10rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
transition: transform 100ms ease-out, background-color 100ms ease-out;
|
||||
}
|
||||
|
||||
.voice-record-retry-button {
|
||||
background: #eaf3ff;
|
||||
color: #007aff;
|
||||
}
|
||||
|
||||
.voice-record-delete-button {
|
||||
background: #fff2f2;
|
||||
color: #b8322d;
|
||||
}
|
||||
|
||||
.voice-record-retry-button::after,
|
||||
.voice-record-delete-button::after {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.voice-record-retry-button:active,
|
||||
.voice-record-delete-button:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.voice-record-retry-button[disabled],
|
||||
.voice-record-delete-button[disabled] {
|
||||
background: #f1f3f6;
|
||||
color: #aeaeb2;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.voice-summary-controls {
|
||||
padding: 18rpx 0;
|
||||
border-top: 1rpx solid #e5e5ea;
|
||||
@@ -589,6 +648,8 @@
|
||||
.voice-button,
|
||||
.voice-state-actionable,
|
||||
.voice-state-arrow,
|
||||
.voice-record-retry-button,
|
||||
.voice-record-delete-button,
|
||||
.feedback-error-copy,
|
||||
.feedback-error-retry,
|
||||
.feedback-error-close {
|
||||
@@ -597,6 +658,8 @@
|
||||
|
||||
.voice-button:active,
|
||||
.voice-state-actionable:active,
|
||||
.voice-record-retry-button:active,
|
||||
.voice-record-delete-button:active,
|
||||
.feedback-error-copy:active,
|
||||
.feedback-error-retry:active,
|
||||
.feedback-error-close:active {
|
||||
|
||||
Reference in New Issue
Block a user