Fix: Number of records design on kanban (#6313)

Fixes #6306 

On hover, the VerticalDots icons will appear but the number of records
won't disappear.
This commit is contained in:
Sanidhya Singh 2024-07-18 22:15:05 +05:30 committed by GitHub
parent 65e8503da8
commit 8a1af3a2ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,14 +26,11 @@ const StyledAmount = styled.div`
const StyledNumChildren = styled.div`
align-items: center;
background-color: ${({ theme }) => theme.background.tertiary};
border-radius: ${({ theme }) => theme.border.radius.rounded};
color: ${({ theme }) => theme.font.color.tertiary};
display: flex;
height: 24px;
justify-content: center;
line-height: ${({ theme }) => theme.text.lineHeight.lg};
margin-left: auto;
width: 16px;
`;
@ -93,9 +90,7 @@ export const RecordBoardColumnHeader = () => {
text={columnDefinition.title}
/>
{!!boardColumnTotal && <StyledAmount>${boardColumnTotal}</StyledAmount>}
{!isHeaderHovered && (
<StyledNumChildren>{recordCount}</StyledNumChildren>
)}
{isHeaderHovered && columnDefinition.actions.length > 0 && (
<StyledHeaderActions>
<LightIconButton