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

@@ -202,7 +202,7 @@
[self.tagListView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.pasteViewInternal);
make.right.equalTo(self.rightButtonContainer.mas_left).offset(-vSpace);
make.top.equalTo(self.pasteViewInternal.mas_bottom).offset(0);
make.top.equalTo(self.pasteViewInternal.mas_bottom).offset(vSpace);
make.bottom.equalTo(self.mas_bottom).offset(0);
}];
}

View File

@@ -57,7 +57,7 @@
[self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self);
make.top.equalTo(self.mas_top).offset(0);
make.bottom.equalTo(self.keyboardView.mas_top).offset(-barSpacing);
make.bottom.equalTo(self.keyboardView.mas_top).offset(0);
}];
// /
}

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);
}];
}