🐛 fix(vscode): 下拉按最长项加宽,避免 profile 名被截断
This commit is contained in:
1 parent
b242a64267
commit
70575e7ac6
3 files changed
+46
-17
No files matched your search
@@ -145,15 +145,16 @@ export function ManagedSessionsPanel({
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="w-12 shrink-0 text-xs text-[var(--vscode-descriptionForeground)]">Profile</span>
|
||||
<SelectMenu
|
||||
value={selectedProfile}
|
||||
onChange={setSelectedProfile}
|
||||
options={profiles.length === 0
|
||||
? [{ value: '', label: '(无可用 profile)' }]
|
||||
: profiles.map(p => ({ value: p.path, label: p.name }))}
|
||||
variant="input"
|
||||
className="min-w-0 flex-1"
|
||||
/>
|
||||
<div className="min-w-0 flex-1">
|
||||
<SelectMenu
|
||||
value={selectedProfile}
|
||||
onChange={setSelectedProfile}
|
||||
options={profiles.length === 0
|
||||
? [{ value: '', label: '(无可用 profile)' }]
|
||||
: profiles.map(p => ({ value: p.path, label: p.name }))}
|
||||
variant="input"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="w-12 shrink-0 text-xs text-[var(--vscode-descriptionForeground)]">名字</span>
|
||||
|
||||
Reference in new issue
Block a user