fix(panel): replace native width input, fix select menu open reflow, and gate context window settings behind risk consent

- Replace native <input type="number"> in popover width settings with CustomNumberInput stepper and hide native number spinbuttons globally
- Eliminate single/multi-select option reflow on open by removing scale(0.985) GPU layer teardown in anim-popover-in, floating .scrollbar-rail without flex width squeeze, and reconciling options before unhiding .select-menu
- Gate Model Context Settings behind a persistent risk consent mask (contextWindowRiskAccepted, default false and re-locked on factory reset)
This commit is contained in:
fish
2026-11-16 18:10:31 +09:00
parent 3b36ade911
commit 4670dd0a0e
17 changed files with 503 additions and 102 deletions
@@ -104,10 +104,6 @@ export const CustomSelect = defineComponent({
function toggleOpen(nextOpen) {
isOpen = Boolean(nextOpen);
patchClasses(rootEl, { 'is-open': isOpen });
patchAttr(triggerBtn, 'aria-expanded', isOpen ? 'true' : 'false');
patchAttr(menuEl, 'hidden', !isOpen);
patchSvgIcon(chevronIcon, isOpen ? 'chevron-up' : 'chevron-down');
if (isOpen) {
const opts = getProps().options || [];
const selSet = getSelectedSet();
@@ -117,6 +113,10 @@ export const CustomSelect = defineComponent({
);
renderMenuOptions();
}
patchClasses(rootEl, { 'is-open': isOpen });
patchAttr(triggerBtn, 'aria-expanded', isOpen ? 'true' : 'false');
patchAttr(menuEl, 'hidden', !isOpen);
patchSvgIcon(chevronIcon, isOpen ? 'chevron-up' : 'chevron-down');
}
function chooseOption(option) {