revert: restore app/appType param compatibility and revert segmented-thumb pointer-events change
- Restore backend commands to accept app_type/app/appType with priority app_type
- Frontend invoke() now passes both { app_type, app } again
- Revert CSS change that set pointer-events: none on segmented-thumb
- Keep minor fix: open_config_folder signature uses handle + respects both names
Note: warnings for non_snake_case (appType) are expected for compatibility.
This commit is contained in:
10
src/App.tsx
10
src/App.tsx
@@ -182,16 +182,14 @@ function App() {
|
||||
<header className="app-header">
|
||||
<h1>{activeApp === "claude" ? "Claude Code" : "Codex"} 供应商切换器</h1>
|
||||
<div className="app-tabs">
|
||||
<div
|
||||
className="segmented"
|
||||
role="tablist"
|
||||
aria-label="选择应用"
|
||||
>
|
||||
<div className="segmented" role="tablist" aria-label="选择应用">
|
||||
<span
|
||||
className="segmented-thumb"
|
||||
style={{
|
||||
transform:
|
||||
activeApp === "claude" ? "translateX(0%)" : "translateX(100%)",
|
||||
activeApp === "claude"
|
||||
? "translateX(0%)"
|
||||
: "translateX(100%)",
|
||||
}}
|
||||
/>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user