mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-10-13 04:56:36 +08:00
修复字幕选择作品文件夹无法展示问题
This commit is contained in:
Vendored
+10
-4
@@ -573,8 +573,8 @@
|
|||||||
}
|
}
|
||||||
.jhs-preview-btn.active {
|
.jhs-preview-btn.active {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: #3b82f6;
|
background: #2ecc71;
|
||||||
border-color: #3b82f6;
|
border-color: #2ecc71;
|
||||||
}
|
}
|
||||||
.jhs-loading-overlay {
|
.jhs-loading-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -709,13 +709,16 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
margin-left: 16px;
|
margin-left: 16px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 1;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 360px;
|
||||||
}
|
}
|
||||||
.pdb-sub-checkbox-group {
|
.pdb-sub-checkbox-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.pdb-sub-checkbox-label {
|
.pdb-sub-checkbox-label {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -725,6 +728,9 @@
|
|||||||
color: #374151;
|
color: #374151;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
max-width: 200px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.pdb-sub-checkbox {
|
.pdb-sub-checkbox {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -6992,7 +6998,7 @@ ${value}\r
|
|||||||
dirWrap.style.display = "";
|
dirWrap.style.display = "";
|
||||||
dirSelect.innerHTML = this.cached115Matches.map((m) => {
|
dirSelect.innerHTML = this.cached115Matches.map((m) => {
|
||||||
const checked = this.current115Cids.includes(m.cid) ? " checked" : "";
|
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>`;
|
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(m.name)}</span></label>`;
|
||||||
}).join("");
|
}).join("");
|
||||||
};
|
};
|
||||||
dirSelect.addEventListener("change", () => {
|
dirSelect.addEventListener("change", () => {
|
||||||
|
|||||||
@@ -648,13 +648,16 @@ const subtitleModalCss = `
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
margin-left: 16px;
|
margin-left: 16px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 1;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 360px;
|
||||||
}
|
}
|
||||||
.pdb-sub-checkbox-group {
|
.pdb-sub-checkbox-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.pdb-sub-checkbox-label {
|
.pdb-sub-checkbox-label {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -714,7 +717,7 @@ const subtitleModalCss = `
|
|||||||
.pdb-sub-textarea {
|
.pdb-sub-textarea {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
background: #1e1e1e;
|
background: #1e1e1e;
|
||||||
color: #e5e7eb;
|
color: #2ecc71;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
font-family: Consolas, Monaco, monospace;
|
font-family: Consolas, Monaco, monospace;
|
||||||
|
|||||||
@@ -74,9 +74,6 @@ export class JavPackSubtitle {
|
|||||||
return window.Req115 || null;
|
return window.Req115 || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
static getGrant() {
|
|
||||||
return window.Grant || null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static getTargetCid() {
|
static getTargetCid() {
|
||||||
return document.querySelector(".x-match-cont .zymatch-item [data-cid]")?.dataset.cid
|
return document.querySelector(".x-match-cont .zymatch-item [data-cid]")?.dataset.cid
|
||||||
@@ -235,7 +232,8 @@ export class JavPackSubtitle {
|
|||||||
dirWrap.style.display = "";
|
dirWrap.style.display = "";
|
||||||
dirSelect.innerHTML = this.cached115Matches.map((m) => {
|
dirSelect.innerHTML = this.cached115Matches.map((m) => {
|
||||||
const checked = this.current115Cids.includes(m.cid) ? " checked" : "";
|
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("");
|
}).join("");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user