This commit is contained in:
2025-12-19 22:00:52 +08:00
parent d612346db5
commit 9cdd024ce2
3 changed files with 8 additions and 7 deletions

View File

@@ -23,8 +23,8 @@
@implementation KBToolBar
static NSString * const kKBAIKeyIdentifier = @"ai";
static const CGFloat kKBAIButtonWidth = 36.0f;
static const CGFloat kKBAIButtonHeight = 36.0f;
static const CGFloat kKBAIButtonWidth = 40;
static const CGFloat kKBAIButtonHeight = 40;
- (instancetype)initWithFrame:(CGRect)frame{
if (self = [super initWithFrame:frame]) {
@@ -110,7 +110,7 @@ static const CGFloat kKBAIButtonHeight = 36.0f;
[btn mas_makeConstraints:^(MASConstraintMaker *make) {
if (i == 0) {
make.centerY.equalTo(self.leftContainer);
make.bottom.equalTo(self.leftContainer);
make.width.mas_equalTo(kKBAIButtonWidth);
make.height.mas_equalTo(kKBAIButtonHeight);
} else {
@@ -323,8 +323,9 @@ static const CGFloat kKBAIButtonHeight = 36.0f;
} else {
make.right.equalTo(self).offset(-12);
}
make.centerY.equalTo(self.mas_centerY);
make.height.mas_equalTo(MAX(32.0f, kKBAIButtonHeight));
make.bottom.equalTo(self);
// make.height.mas_equalTo(MAX(32.0f, kKBAIButtonHeight));
make.height.equalTo(self);
}];
}