fix(item-bottom): 修复分享功能中token未定义的问题

style(edit): 调整编辑器工具栏样式,包括内边距、高度和悬停效果
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-11-17 18:56:30 +08:00
parent db54f19af8
commit 1c950e00a8
3 changed files with 22 additions and 6 deletions

View File

@@ -115,6 +115,7 @@ export const itemBottom = defineComponent({
};
const share = () => {
const token = item.value.token || "";
ajax(`/v2/api/forum/postTopicShare`, {token});
};

View File

@@ -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;

View File

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