This commit is contained in:
2026-01-26 13:51:38 +08:00
parent 77fd46aa34
commit 0fa31418f6
2 changed files with 12 additions and 3 deletions

View File

@@ -546,10 +546,12 @@ static const NSTimeInterval kTimestampInterval = 5 * 60; // 5 分钟
self.playingCellIndexPath = indexPath; self.playingCellIndexPath = indexPath;
// Cell // Cell TableView
KBChatAssistantMessageCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; KBChatAssistantMessageCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
if ([cell isKindOfClass:[KBChatAssistantMessageCell class]]) { if ([cell isKindOfClass:[KBChatAssistantMessageCell class]]) {
[UIView performWithoutAnimation:^{
[cell updateVoicePlayingState:YES]; [cell updateVoicePlayingState:YES];
}];
} }
} }
@@ -561,7 +563,10 @@ static const NSTimeInterval kTimestampInterval = 5 * 60; // 5 分钟
if (self.playingCellIndexPath) { if (self.playingCellIndexPath) {
KBChatAssistantMessageCell *cell = [self.tableView cellForRowAtIndexPath:self.playingCellIndexPath]; KBChatAssistantMessageCell *cell = [self.tableView cellForRowAtIndexPath:self.playingCellIndexPath];
if ([cell isKindOfClass:[KBChatAssistantMessageCell class]]) { if ([cell isKindOfClass:[KBChatAssistantMessageCell class]]) {
// TableView
[UIView performWithoutAnimation:^{
[cell updateVoicePlayingState:NO]; [cell updateVoicePlayingState:NO];
}];
} }
self.playingCellIndexPath = nil; self.playingCellIndexPath = nil;
} }

View File

@@ -200,12 +200,16 @@
make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop).offset(8); make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop).offset(8);
make.left.equalTo(self.view).offset(16); make.left.equalTo(self.view).offset(16);
make.right.equalTo(self.view).offset(-16); make.right.equalTo(self.view).offset(-16);
//
make.height.mas_equalTo(20); //
}]; }];
[self.transcriptLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.transcriptLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.statusLabel.mas_bottom).offset(8); make.top.equalTo(self.statusLabel.mas_bottom).offset(8);
make.left.equalTo(self.view).offset(16); make.left.equalTo(self.view).offset(16);
make.right.equalTo(self.view).offset(-16); make.right.equalTo(self.view).offset(-16);
//
make.height.mas_equalTo(60); //
}]; }];
// //
[self.transcriptLabel setContentCompressionResistancePriority:UILayoutPriorityDefaultLow [self.transcriptLabel setContentCompressionResistancePriority:UILayoutPriorityDefaultLow