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
+9 -6
View File
@@ -310,12 +310,6 @@ export function DatasetPage({
);
return (
<section className="preparation-page">
<ScopeControls
value={scope}
onChange={setScope}
active={active}
revision={version}
/>
{error && <Banner type="danger" description={error} />}
{copied && (
<Banner
@@ -329,6 +323,15 @@ export function DatasetPage({
/>
)}
<CatalogTableToolbar
scope={
<ScopeControls
inline
value={scope}
onChange={setScope}
active={active}
revision={version}
/>
}
label="数据目录"
active={active && !suspended && !detail}
filterCount={[q, category, subcategory].filter(Boolean).length}