修复全仓复利开启时单笔预算仍显示:flex 覆盖了 hidden,改为强制隐藏。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -295,6 +295,10 @@
|
||||
input.dataset.envKey = field.key;
|
||||
input.className = "env-field-input";
|
||||
row.appendChild(input);
|
||||
if (field.hidden) {
|
||||
row.hidden = true;
|
||||
row.style.display = "none";
|
||||
}
|
||||
return row;
|
||||
}
|
||||
|
||||
@@ -367,6 +371,7 @@
|
||||
if (!budgetRow) return;
|
||||
const compoundOn = !compoundSel || String(compoundSel.value || "").toLowerCase() === "true";
|
||||
budgetRow.hidden = compoundOn;
|
||||
budgetRow.style.display = compoundOn ? "none" : "";
|
||||
}
|
||||
|
||||
function bindCompoundBudgetVisibility(body) {
|
||||
|
||||
@@ -2494,6 +2494,11 @@ html[data-theme="light"] .journal-detail-img-thumb {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* display:flex 会盖掉 UA [hidden];全仓复利开时隐藏单笔预算等依赖此规则 */
|
||||
.env-field-row[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.env-field-row--restart .env-field-label {
|
||||
color: #d4c4a0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user