优化发送输入框

This commit is contained in:
2026-02-02 21:25:28 +08:00
parent 6e50cdcd2a
commit 19cb29616f
9 changed files with 126 additions and 63 deletions

View File

@@ -189,8 +189,8 @@ static NSString *const kCommentFooterIdentifier = @"CommentFooter";
}];
[self.inputView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self);
make.height.mas_equalTo(50);
make.left.right.equalTo(self).inset(12);
make.height.mas_equalTo(52);
self.inputBottomConstraint =
make.bottom.equalTo(self).offset(-KB_SafeAreaBottom());
}];
@@ -846,8 +846,9 @@ static NSInteger const kRepliesLoadCount = 5;
- (KBAICommentInputView *)inputView {
if (!_inputView) {
_inputView = [[KBAICommentInputView alloc] init];
_inputView.placeholder = @"说点什么...";
_inputView.placeholder = @"Send A Message";
_inputView.layer.cornerRadius = 26;
_inputView.clipsToBounds = true;
__weak typeof(self) weakSelf = self;
_inputView.onSend = ^(NSString *text) {
[weakSelf sendCommentWithText:text];