From 1c950e00a87831105baa774d4298044ce9f1bb9d Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Mon, 17 Nov 2025 18:56:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(item-bottom):=20=E4=BF=AE=E5=A4=8D=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=8A=9F=E8=83=BD=E4=B8=ADtoken=E6=9C=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit style(edit): 调整编辑器工具栏样式,包括内边距、高度和悬停效果 --- component/item-bottom/item-bottom.js | 1 + css/edit.css | 12 +++++++++--- css/edit.less | 15 ++++++++++++--- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index 46df583..afe7bdc 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -115,6 +115,7 @@ export const itemBottom = defineComponent({ }; const share = () => { + const token = item.value.token || ""; ajax(`/v2/api/forum/postTopicShare`, {token}); }; diff --git a/css/edit.css b/css/edit.css index 12d7e29..64028a2 100644 --- a/css/edit.css +++ b/css/edit.css @@ -76,19 +76,22 @@ #edit .edit-container .editor-toolbar { height: 36px; background-color: #fbfbfb; - padding-left: 35px; + padding-left: 25px; } #edit .edit-container .editor-toolbar .toolbar-item { cursor: pointer; - height: 100%; + height: 30px; + line-height: 30px; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-weight: 400; font-style: normal; font-size: 14px; color: #000000; line-height: 23px; - margin-right: 50px; + margin-right: 40px; position: relative; + padding: 0 10px; + border-radius: 50px; } #edit .edit-container .editor-toolbar .toolbar-item .icon { width: 16px; @@ -226,6 +229,9 @@ #edit .edit-container .editor-toolbar .toolbar-item.link .link-box .btn:hover { background-color: #c2eff6; } +#edit .edit-container .editor-toolbar .toolbar-item.h2.pitch { + background-color: #f6f6bd; +} #edit .edit-container .content-input { min-height: 509px; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; diff --git a/css/edit.less b/css/edit.less index d0dc3b6..06d6796 100644 --- a/css/edit.less +++ b/css/edit.less @@ -85,7 +85,7 @@ .editor-toolbar { height: 36px; background-color: rgba(251, 251, 251, 1); - padding-left: 35px; + padding-left: 25px; .toolbar-item { .icon { width: 16px; @@ -94,15 +94,18 @@ } cursor: pointer; - height: 100%; + height: 30px; + line-height: 30px; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-weight: 400; font-style: normal; font-size: 14px; color: #000000; line-height: 23px; - margin-right: 50px; + margin-right: 40px; position: relative; + padding: 0 10px; + border-radius: 50px; .file { opacity: 0; /* 隐藏输入框 */ @@ -256,6 +259,12 @@ } } } + + &.h2 { + &.pitch { + background-color: rgba(246, 246, 189, 1); + } + } } }