This commit is contained in:
2025-12-19 20:25:22 +08:00
parent df51620ca9
commit 8d0939cd78

View File

@@ -136,19 +136,24 @@
- (void)setupUI {
// 1. Bar
[self addSubview:self.barViewInternal];
CGFloat barTopInset = KBFit(6.0f);
CGFloat barHeight = KBFit(52.0f);
[self.barViewInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self);
make.top.equalTo(self.mas_top).offset(6);
make.height.mas_equalTo(52);
make.top.equalTo(self.mas_top).offset(barTopInset);
make.height.mas_equalTo(barHeight);
}];
//
[self addSubview:self.rightButtonContainer];
CGFloat rightInset = KBFit(4.0f);
CGFloat containerBottomInset = KBFit(10.0f);
CGFloat containerWidth = KBFit(60.0f);
[self.rightButtonContainer mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.equalTo(self.mas_right).offset(-4);
make.right.equalTo(self.mas_right).offset(-rightInset);
make.top.equalTo(self.barViewInternal.mas_bottom).offset(0);
make.bottom.equalTo(self.mas_bottom).offset(-10);
make.width.mas_equalTo(60);
make.bottom.equalTo(self.mas_bottom).offset(0);
make.width.mas_equalTo(containerWidth);
}];
//
@@ -158,10 +163,10 @@
[self.rightButtonContainer addSubview:self.sendButtonInternal];
//
CGFloat smallH = 41;
CGFloat bigH = 56;
// 10 276 8 AutoLayout
CGFloat vSpace = 4;
CGFloat smallH = KBFit(41.0f);
CGFloat bigH = KBFit(56.0f);
// /稿
CGFloat vSpace = KBFit(4.0f);
[self.pasteButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.rightButtonContainer.mas_top);
make.left.right.equalTo(self.rightButtonContainer);
@@ -202,8 +207,8 @@
[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(vSpace);
make.bottom.equalTo(self.mas_bottom).offset(-10);
make.top.equalTo(self.pasteViewInternal.mas_bottom).offset(0);
make.bottom.equalTo(self.mas_bottom).offset(0);
}];
}
@@ -238,11 +243,13 @@
[self addSubview:overlay];
[overlay mas_makeConstraints:^(MASConstraintMaker *make) {
//
CGFloat vSpace = 4.0;
CGFloat vSpace = KBFit(4.0f);
CGFloat overlayTopInset = KBFit(10.0f);
CGFloat overlayBottomInset = KBFit(10.0f);
make.left.equalTo(self.pasteViewInternal);
make.right.equalTo(self).offset(-vSpace);
make.top.equalTo(self.pasteViewInternal.mas_bottom).offset(10);
make.bottom.equalTo(self.mas_bottom).offset(-10);
make.top.equalTo(self.pasteViewInternal.mas_bottom).offset(overlayTopInset);
make.bottom.equalTo(self.mas_bottom).offset(-overlayBottomInset);
}];
// //Paste
self.pasteButtonInternal.hidden = NO;