Add compact notice display mode

This commit is contained in:
Hao19911125
2026-04-05 14:36:50 +08:00
parent 8320c2dce7
commit 03b535f5a4
5 changed files with 375 additions and 2 deletions

View File

@@ -1711,6 +1711,10 @@ function _refreshConfigTab() {
"bme-setting-recall-card-user-input-display-mode",
settings.recallCardUserInputDisplayMode ?? "beautify_only",
);
_setInputValue(
"bme-setting-notice-display-mode",
settings.noticeDisplayMode ?? "normal",
);
_setInputValue("bme-setting-extract-every", settings.extractEvery ?? 1);
_setInputValue(
@@ -2053,6 +2057,17 @@ function _bindConfigControls() {
});
recallCardUserInputDisplayModeEl.dataset.bmeBound = "true";
}
const noticeDisplayModeEl = document.getElementById(
"bme-setting-notice-display-mode",
);
if (noticeDisplayModeEl && noticeDisplayModeEl.dataset.bmeBound !== "true") {
noticeDisplayModeEl.addEventListener("change", () => {
_patchSettings({
noticeDisplayMode: noticeDisplayModeEl.value || "normal",
});
});
noticeDisplayModeEl.dataset.bmeBound = "true";
}
bindNumber("bme-setting-extract-every", 1, 1, 50, (value) =>
_patchSettings({ extractEvery: value }),