修改UI
This commit is contained in:
@@ -202,7 +202,7 @@
|
|||||||
[self.tagListView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.tagListView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.equalTo(self.pasteViewInternal);
|
make.left.equalTo(self.pasteViewInternal);
|
||||||
make.right.equalTo(self.rightButtonContainer.mas_left).offset(-vSpace);
|
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);
|
make.bottom.equalTo(self.mas_bottom).offset(0);
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
[self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.right.equalTo(self);
|
make.left.right.equalTo(self);
|
||||||
make.top.equalTo(self.mas_top).offset(0);
|
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);
|
||||||
}];
|
}];
|
||||||
// 功能面板切换交由外部控制器处理;此处不直接创建/管理
|
// 功能面板切换交由外部控制器处理;此处不直接创建/管理
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,8 @@
|
|||||||
@implementation KBToolBar
|
@implementation KBToolBar
|
||||||
|
|
||||||
static NSString * const kKBAIKeyIdentifier = @"ai";
|
static NSString * const kKBAIKeyIdentifier = @"ai";
|
||||||
static const CGFloat kKBAIButtonWidth = 36.0f;
|
static const CGFloat kKBAIButtonWidth = 40;
|
||||||
static const CGFloat kKBAIButtonHeight = 36.0f;
|
static const CGFloat kKBAIButtonHeight = 40;
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(CGRect)frame{
|
- (instancetype)initWithFrame:(CGRect)frame{
|
||||||
if (self = [super initWithFrame:frame]) {
|
if (self = [super initWithFrame:frame]) {
|
||||||
@@ -110,7 +110,7 @@ static const CGFloat kKBAIButtonHeight = 36.0f;
|
|||||||
|
|
||||||
[btn mas_makeConstraints:^(MASConstraintMaker *make) {
|
[btn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
make.centerY.equalTo(self.leftContainer);
|
make.bottom.equalTo(self.leftContainer);
|
||||||
make.width.mas_equalTo(kKBAIButtonWidth);
|
make.width.mas_equalTo(kKBAIButtonWidth);
|
||||||
make.height.mas_equalTo(kKBAIButtonHeight);
|
make.height.mas_equalTo(kKBAIButtonHeight);
|
||||||
} else {
|
} else {
|
||||||
@@ -323,8 +323,9 @@ static const CGFloat kKBAIButtonHeight = 36.0f;
|
|||||||
} else {
|
} else {
|
||||||
make.right.equalTo(self).offset(-12);
|
make.right.equalTo(self).offset(-12);
|
||||||
}
|
}
|
||||||
make.centerY.equalTo(self.mas_centerY);
|
make.bottom.equalTo(self);
|
||||||
make.height.mas_equalTo(MAX(32.0f, kKBAIButtonHeight));
|
// make.height.mas_equalTo(MAX(32.0f, kKBAIButtonHeight));
|
||||||
|
make.height.equalTo(self);
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user