mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: update dataset count badge and tash icon sizing (#15608)
* update trash icon size * changed badge icon `height` to `16px` (using `gridUnits` and centered text inside via `line-height` * changed badge icon `height` to `16px` (using `gridUnits`), centered text inside via `line-height`, alignedItems inside div w/flex
This commit is contained in:
@@ -87,6 +87,14 @@ const StyledTableTabs = styled(Tabs)`
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledBadge = styled(Badge)`
|
||||
.ant-badge-count {
|
||||
line-height: ${({ theme }) => theme.gridUnit * 4}px;
|
||||
height: ${({ theme }) => theme.gridUnit * 4}px;
|
||||
margin-left: ${({ theme }) => theme.gridUnit}px;
|
||||
}
|
||||
`;
|
||||
|
||||
const EditLockContainer = styled.div`
|
||||
font-size: ${supersetTheme.typography.sizes.s}px;
|
||||
display: flex;
|
||||
@@ -117,8 +125,12 @@ DATASOURCE_TYPES_ARR.forEach(o => {
|
||||
|
||||
function CollectionTabTitle({ title, collection }) {
|
||||
return (
|
||||
<div data-test={`collection-tab-${title}`}>
|
||||
{title} <Badge count={collection ? collection.length : 0} showZero />
|
||||
<div
|
||||
css={{ display: 'flex', alignItems: 'center' }}
|
||||
data-test={`collection-tab-${title}`}
|
||||
>
|
||||
{title}{' '}
|
||||
<StyledBadge count={collection ? collection.length : 0} showZero />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user