Use dense table style and outlined chips in the API Explorer (#3276)

This matches the styling of the catalog.
This commit is contained in:
Oliver Sand
2020-11-11 13:34:40 +01:00
committed by GitHub
parent 4a9d666a32
commit 84b654d5de
2 changed files with 13 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
Use dense table style and outlined chips in the API Explorer.
@@ -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' }}
/>
))}
</>
),
@@ -149,6 +155,7 @@ export const ApiExplorerTable = ({
paging: false,
actionsColumnIndex: -1,
loadingType: 'linear',
padding: 'dense',
showEmptyDataSourceMessage: !loading,
}}
data={entities}