Skip to content

Commit 8479b4f

Browse files
committed
fix: 修复新版论坛编辑器混排按钮失效问题
1 parent 6e286ea commit 8479b4f

7 files changed

Lines changed: 33 additions & 9 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- style: 修复管理权限用户头像光圈在简洁模式下的冲突
22
- feat: 支持弹窗/侧边双重切换,暂不可同时存在
3-
- feat: 支持在弹窗/侧边快速查看收藏夹
3+
- feat: 支持在弹窗/侧边快速查看收藏夹
4+
- fix: 修复新版论坛编辑器混排按钮失效问题

‎entrypoints/App.vue‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎entrypoints/app.css‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,4 +1191,16 @@ body.body-preview #main-outlet-wrapper {
11911191

11921192
#linuxdoscripts .menu-items.active>div:nth-child(9) {
11931193
transition-delay: 0.5s;
1194+
}
1195+
1196+
#reply-control .discard {
1197+
display: flex;
1198+
}
1199+
1200+
#reply-control .discard .replyja {
1201+
margin-right: 10px;
1202+
}
1203+
1204+
#reply-control .discard-button {
1205+
margin-left: auto;
11941206
}

‎entrypoints/components/BasicSettings/MenuEditorJa.vue‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ export default {
1212
emits: ["update:modelValue"],
1313
data() {
1414
return {
15-
editorJaIntervalId: null // 添加变量存储定时器ID
15+
editorJaIntervalId: null // 添加变量存储定时器 ID
1616
};
1717
},
1818
created() {
1919
if (this.modelValue) {
2020
this.editorJaIntervalId = setInterval(() => {
2121
if ($(".replyja").length < 1) {
22-
$("#reply-control .save-or-cancel .create").after(
23-
`<button class="btn btn-default replyja" style="margin-left:15px;" type="button">ja 字体</button>`
24-
);
22+
$("#reply-control .discard").prepend(`
23+
<button class="btn btn-icon-text replyja" type="button">
24+
<span class="d-button-label">ja 字体</span>
25+
</button>`);
2526
$(".replyja").click(function () {
2627
let $textarea = $(".d-editor-textarea-wrapper textarea");
2728
let text = `<span lang="ja">

‎entrypoints/components/BasicSettings/MenuPangu.vue‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
emits: ["update:modelValue"],
1414
data() {
1515
return {
16-
panguIntervalId: null // 添加变量存储定时器ID
16+
panguIntervalId: null // 添加变量存储定时器 ID
1717
};
1818
},
1919
created() {
@@ -26,7 +26,10 @@ export default {
2626
});
2727
2828
if ($(".pangutext").length < 1) {
29-
$(".save-or-cancel .cancel").before(`<span class="pangutext">混排优化</span>`);
29+
$("#reply-control .discard").prepend(`
30+
<button class="btn btn-icon-text pangutext" type="button">
31+
<span class="d-button-label">混排优化</span>
32+
</button>`);
3033
$(".pangutext").click(function () {
3134
const $textarea = $(".d-editor-input");
3235
let text = pangu.spacing($textarea.val());

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "linuxdo-scripts",
33
"description": "manifest.json description",
44
"private": true,
5-
"version": "1.4.1",
5+
"version": "1.4.2",
66
"type": "module",
77
"scripts": {
88
"dev": "wxt",

‎version-log.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.4.2
2+
3+
- style: 修复管理权限用户头像光圈在简洁模式下的冲突
4+
- feat: 支持弹窗/侧边双重切换,暂不可同时存在
5+
- feat: 支持在弹窗/侧边快速查看收藏夹
6+
- fix: 修复新版论坛编辑器混排按钮失效问题
7+
18
## 1.4.1
29

310
- fix: 修复回复帖子时跳动问题 #233 #231

0 commit comments

Comments
 (0)