Skip to content

Commit

Permalink
Use dense table style and outlined chips in the API Explorer (#3276)
Browse files Browse the repository at this point in the history
This matches the styling of the catalog.
  • Loading branch information
Fox32 committed Nov 11, 2020
1 parent 4a9d666 commit 84b654d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/perfect-boats-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---

Use dense table style and outlined chips in the API Explorer.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ const columns: TableColumn<Entity>[] = [
<>
{entity.metadata.tags &&
entity.metadata.tags.map(t => (
<Chip key={t} label={t} style={{ marginBottom: '0px' }} />
<Chip
key={t}
label={t}
size="small"
variant="outlined"
style={{ marginBottom: '0px' }}
/>
))}
</>
),
Expand Down Expand Up @@ -149,6 +155,7 @@ export const ApiExplorerTable = ({
paging: false,
actionsColumnIndex: -1,
loadingType: 'linear',
padding: 'dense',
showEmptyDataSourceMessage: !loading,
}}
data={entities}
Expand Down

0 comments on commit 84b654d

Please sign in to comment.