Skip to content

Commit

Permalink
fix(IssueListItem): wrap StateDot
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Feb 8, 2023
1 parent b67ed5c commit 4acb23e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/IssueListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from 'styled-components';
import NextLink from 'next/link';

import { gapM, gapS } from '../design/@generated/themes';
import { gapM, gapS, gapXs } from '../design/@generated/themes';
import { routes } from '../hooks/router';

import { StateDot } from './StateDot';
Expand All @@ -21,22 +21,32 @@ interface IssueListItemProps {

const StyledIssueListItem = styled.div`
padding: ${gapS} ${gapM} ${gapS} 0;
display: flex;
align-items: top;
`;

const StyledIssueListItemTitle = styled(Text)`
padding-top: 0;
margin-top: 0;
padding-left: ${gapS};
`;

const StyledLink = styled(Link)`
display: 'inline-block';
display: inline-block;
`;

const StyledDotWrapper = styled.div`
padding-top: ${gapXs};
`;

export const IssueListItem: React.FC<IssueListItemProps> = ({ issue }) => {
return (
<NextLink passHref href={routes.goal(issue.id)}>
<StyledLink inline>
<StyledIssueListItem>
<StateDot {...issue.state} />
<StyledDotWrapper>
<StateDot {...issue.state} />
</StyledDotWrapper>
<StyledIssueListItemTitle size="s" weight="bold" color="inherit">
{issue.title}
</StyledIssueListItemTitle>
Expand Down

0 comments on commit 4acb23e

Please sign in to comment.