feat: 设置弹框组件样式调整

This commit is contained in:
hzm
2026-03-09 20:00:18 +08:00
parent 480abbcf47
commit d4255fc1c8
2 changed files with 128 additions and 106 deletions

View File

@@ -2585,9 +2585,11 @@ export default function HomePage() {
await refreshAll(codes);
};
const saveSettings = (e) => {
const saveSettings = (e, secondsOverride) => {
e?.preventDefault?.();
const ms = Math.max(30, Number(tempSeconds)) * 1000;
const seconds = secondsOverride ?? tempSeconds;
const ms = Math.max(30, Number(seconds)) * 1000;
setTempSeconds(Math.round(ms / 1000));
setRefreshMs(ms);
storageHelper.setItem('refreshMs', String(ms));
const w = Math.min(2000, Math.max(600, Number(containerWidth) || 1200));