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

Add wrapping to selected scopes
pull/105702/head
Andrej Ocenas 7 months 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}> <span className={styles.scopesText}>
<Trans i18nKey={'command-palette.scopes.selected-scopes-label'}>Scopes: </Trans> <Trans i18nKey={'command-palette.scopes.selected-scopes-label'}>Scopes: </Trans>
</span> </span>
{treeScopes?.map((scope) => { <Stack wrap={'wrap'}>
return ( {treeScopes?.map((scope) => {
<FilterPill return (
key={scope.scopeName} <FilterPill
selected={true} key={scope.scopeName}
icon={'times'} selected={true}
label={scope.title} icon={'times'}
onClick={() => { label={scope.title}
toggleNode(scope); onClick={() => {
}} toggleNode(scope);
/> }}
); />
})} );
})}
</Stack>
</Stack> </Stack>
{isDirty && ( {isDirty && (
<Button <Button

Loading…
Cancel
Save