From 9cdd024ce22192e2ff3cdba4c5d3afdd7b11eb99 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Fri, 19 Dec 2025 22:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomKeyboard/View/KBFunctionView.m | 2 +- CustomKeyboard/View/KBKeyBoardMainView.m | 2 +- CustomKeyboard/View/KBToolBar.m | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CustomKeyboard/View/KBFunctionView.m b/CustomKeyboard/View/KBFunctionView.m index 70d07ca..6d74774 100644 --- a/CustomKeyboard/View/KBFunctionView.m +++ b/CustomKeyboard/View/KBFunctionView.m @@ -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); }]; } diff --git a/CustomKeyboard/View/KBKeyBoardMainView.m b/CustomKeyboard/View/KBKeyBoardMainView.m index caf42ce..387fe33 100644 --- a/CustomKeyboard/View/KBKeyBoardMainView.m +++ b/CustomKeyboard/View/KBKeyBoardMainView.m @@ -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); }]; // 功能面板切换交由外部控制器处理;此处不直接创建/管理 } diff --git a/CustomKeyboard/View/KBToolBar.m b/CustomKeyboard/View/KBToolBar.m index ce4000a..ba087c0 100644 --- a/CustomKeyboard/View/KBToolBar.m +++ b/CustomKeyboard/View/KBToolBar.m @@ -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); }]; }