mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-10-07 10:46:37 +08:00
修复字幕选择作品文件夹无法展示问题
This commit is contained in:
@@ -648,13 +648,16 @@ const subtitleModalCss = `
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-left: 16px;
|
||||
flex-shrink: 0;
|
||||
flex-shrink: 1;
|
||||
min-width: 0;
|
||||
max-width: 360px;
|
||||
}
|
||||
.pdb-sub-checkbox-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
min-width: 0;
|
||||
}
|
||||
.pdb-sub-checkbox-label {
|
||||
display: flex;
|
||||
@@ -714,7 +717,7 @@ const subtitleModalCss = `
|
||||
.pdb-sub-textarea {
|
||||
flex: 1;
|
||||
background: #1e1e1e;
|
||||
color: #e5e7eb;
|
||||
color: #2ecc71;
|
||||
border: none;
|
||||
padding: 14px;
|
||||
font-family: Consolas, Monaco, monospace;
|
||||
|
||||
@@ -74,9 +74,6 @@ export class JavPackSubtitle {
|
||||
return window.Req115 || null;
|
||||
}
|
||||
|
||||
static getGrant() {
|
||||
return window.Grant || null;
|
||||
}
|
||||
|
||||
static getTargetCid() {
|
||||
return document.querySelector(".x-match-cont .zymatch-item [data-cid]")?.dataset.cid
|
||||
@@ -235,7 +232,8 @@ export class JavPackSubtitle {
|
||||
dirWrap.style.display = "";
|
||||
dirSelect.innerHTML = this.cached115Matches.map((m) => {
|
||||
const checked = this.current115Cids.includes(m.cid) ? " checked" : "";
|
||||
return `<label class="pdb-sub-checkbox-label"><input type="checkbox" class="pdb-sub-checkbox" value="${m.cid}"${checked}><span>${this.escapeHtml(m.name)}</span></label>`;
|
||||
const displayName = m.name.length > 26 ? m.name.slice(0, 26) + '...' : m.name;
|
||||
return `<label class="pdb-sub-checkbox-label"><input type="checkbox" class="pdb-sub-checkbox" value="${m.cid}"${checked}><span title="${this.escapeHtml(m.name)}">${this.escapeHtml(displayName)}</span></label>`;
|
||||
}).join("");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user