fix: align scope picker with catalog toolbar

This commit is contained in:
yuxuanhui
2026-09-12 13:21:08 +08:00
parent 8981c24fda
commit ed349693db
6 changed files with 78 additions and 17 deletions
+6 -1
View File
@@ -18,6 +18,7 @@ export function ScopePicker({
value,
onChange,
local = false,
inline = false,
active = true,
revision = "",
options,
@@ -28,6 +29,7 @@ export function ScopePicker({
value: Scope;
onChange: (scope: Scope) => void;
local?: boolean;
inline?: boolean;
active?: boolean;
revision?: string;
options?: ScopeOption[];
@@ -86,7 +88,10 @@ export function ScopePicker({
value.universe &&
Number.isFinite(value.delay);
return (
<section className="scope-picker" aria-label="组合选择">
<section
className={`scope-picker${inline ? " scope-picker-inline" : ""}`}
aria-label="组合选择"
>
<div className="scope-picker-summary">
<div>
<span className="settings-label">组合</span>