修复键盘功能键 发送按钮距离底部很远

This commit is contained in:
2025-12-19 20:40:53 +08:00
parent 8d0939cd78
commit 200b1ab9f8
6 changed files with 6 additions and 11 deletions

View File

@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "ai_key_icon@2x.png", "filename" : "切图 270@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "ai_key_icon@3x.png", "filename" : "切图 270@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -162,15 +162,12 @@
[self.rightButtonContainer addSubview:self.clearButtonInternal]; [self.rightButtonContainer addSubview:self.clearButtonInternal];
[self.rightButtonContainer addSubview:self.sendButtonInternal]; [self.rightButtonContainer addSubview:self.sendButtonInternal];
// // 8px稿
CGFloat smallH = KBFit(41.0f); CGFloat smallH = KBFit(41.0f);
CGFloat bigH = KBFit(56.0f); CGFloat vSpace = KBFit(8.0f);
// /稿
CGFloat vSpace = KBFit(4.0f);
[self.pasteButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) { [self.pasteButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.rightButtonContainer.mas_top); make.top.equalTo(self.rightButtonContainer.mas_top);
make.left.right.equalTo(self.rightButtonContainer); make.left.right.equalTo(self.rightButtonContainer);
make.height.mas_equalTo(smallH);
}]; }];
[self.deleteButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) { [self.deleteButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.pasteButtonInternal.mas_bottom).offset(vSpace); make.top.equalTo(self.pasteButtonInternal.mas_bottom).offset(vSpace);
@@ -185,10 +182,8 @@
[self.sendButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) { [self.sendButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.clearButtonInternal.mas_bottom).offset(vSpace); make.top.equalTo(self.clearButtonInternal.mas_bottom).offset(vSpace);
make.left.right.equalTo(self.rightButtonContainer); make.left.right.equalTo(self.rightButtonContainer);
// smallH make.height.equalTo(self.pasteButtonInternal);
make.height.greaterThanOrEqualTo(@(smallH)); make.bottom.equalTo(self.rightButtonContainer.mas_bottom);
make.height.lessThanOrEqualTo(@(bigH));
make.bottom.lessThanOrEqualTo(self.rightButtonContainer.mas_bottom);
}]; }];
// 2. // 2.