mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-06-14 02:40:45 +08:00
Add compact notice display mode
This commit is contained in:
15
panel.js
15
panel.js
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user