Scopes: Add wrapping to selected scopes in command palette (#105828)

Add wrapping to selected scopes
pull/105702/head
Andrej Ocenas 4 weeks ago committed by GitHub
parent 18216a9a15
commit bd22c854b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 28
      public/app/features/commandPalette/ScopesRow.tsx

@ -26,19 +26,21 @@ export function ScopesRow({ treeScopes, isDirty, apply, toggleNode }: Props) {
<span className={styles.scopesText}>
<Trans i18nKey={'command-palette.scopes.selected-scopes-label'}>Scopes: </Trans>
</span>
{treeScopes?.map((scope) => {
return (
<FilterPill
key={scope.scopeName}
selected={true}
icon={'times'}
label={scope.title}
onClick={() => {
toggleNode(scope);
}}
/>
);
})}
<Stack wrap={'wrap'}>
{treeScopes?.map((scope) => {
return (
<FilterPill
key={scope.scopeName}
selected={true}
icon={'times'}
label={scope.title}
onClick={() => {
toggleNode(scope);
}}
/>
);
})}
</Stack>
</Stack>
{isDirty && (
<Button

Loading…
Cancel
Save