回复的Katex编辑界面BUG
回复的Katex编辑界面只占的空间,有留白
@2026-9-2 16:50:52
已将工单指派给
/user/5
@2026-9-2 16:51:02
工单状态已由 待处理 更新为 处理中
@2026-9-2 16:51:40
用户您好,这个建议先提交到建议页面
@2026-9-2 16:51:52
工单状态已由 处理中 更新为 挂起
@2026-9-2 17:28:08
已经为您独立定制了脚本:
// ==UserScript==
// @name Hydro Ticket Full Width Editor
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Force the Hydro ticket reply editor to full width
// @author Copilot
// @match *://*/ticket/*
// @match *://*/ticket*
// @grant GM_addStyle
// ==/UserScript==
(function () {
'use strict';
const CSS = `
/* 让整个工单内容区占满 */
.medium-8 {
width: 100% !important;
max-width: 100% !important;
flex: 0 0 100% !important;
}
/* 强制 Markdown 编辑器/文本域全宽 */
.textarea-container,
.textarea-container .md-editor-content,
.textarea-container .md-editor-content-wrapper,
.textarea-container .md-editor-input-wrapper,
.textarea-container .md-editor-preview-wrapper,
.textarea-container .md-editor-preview,
.textarea-container .cm-scroller,
.textarea-container .cm-content {
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
flex: 1 1 100% !important;
box-sizing: border-box !important;
}
.textarea-container .md-editor-resize-operate {
display: none !important;
}
.textarea-container .md-editor-input-wrapper {
width: 100% !important;
}
`;
GM_addStyle(CSS);
function applyFix() {
const root = document.querySelector('.textarea-container');
if (!root) return;
const targets = root.querySelectorAll(
'.md-editor-content, .md-editor-content-wrapper, .md-editor-input-wrapper, .md-editor-preview-wrapper'
);
targets.forEach(el => {
el.style.width = '100%';
el.style.maxWidth = '100%';
el.style.flex = '1 1 100%';
el.style.minWidth = '0';
el.style.boxSizing = 'border-box';
});
const editor = root.querySelector('.md-editor-input-wrapper');
if (editor) {
editor.style.width = '100%';
editor.style.maxWidth = '100%';
}
const resize = root.querySelector('.md-editor-resize-operate');
if (resize) resize.style.display = 'none';
}
const observer = new MutationObserver(() => {
applyFix();
});
const start = () => {
applyFix();
const target = document.body;
if (target) {
observer.observe(target, {
childList: true,
subtree: true
});
}
};
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', start, { once: true });
} else {
start();
}
})();
@2026-9-2 17:31:29
工单状态已由 挂起 更新为 已完成
工单状态: 已完成
创建者:
指派人:
工单类型: 建议相关
创建时间: 2026-9-2 16:50:05