mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-06-16 21:03:58 +08:00
- Add ExpandableInput component that toggles between single-line <input> and auto-resizing <textarea> for long content (>30 chars) - Apply to all payload rule fields: model name (both layout branches), json_path, param value, filter model name, and string list items - Strip newline characters in both input and textarea onChange handlers to prevent multi-line values from breaking YAML serialization - Use useLayoutEffect for resize to avoid visual flicker - Remove redundant autoResize call from click handler (handled by effect) - Disable expand/collapse buttons when field is disabled, with proper cursor and opacity styles - Localize button labels via i18n (en, zh-CN, ru) - Use explicit .expandableInputExpanded class instead of CSS :has() for cross-browser compatibility