fix(item-bottom): 修复分享功能中token未定义的问题
style(edit): 调整编辑器工具栏样式,包括内边距、高度和悬停效果
This commit is contained in:
@@ -115,6 +115,7 @@ export const itemBottom = defineComponent({
|
||||
};
|
||||
|
||||
const share = () => {
|
||||
const token = item.value.token || "";
|
||||
ajax(`/v2/api/forum/postTopicShare`, {token});
|
||||
};
|
||||
|
||||
|
||||
12
css/edit.css
12
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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user