Skip to content

Commit

Permalink
fix: step의 멤버 수가 많을 때 member ChipGroup 레이아웃 깨지던 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Sep 25, 2024
1 parent e163b1b commit 629458e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export const chipGroupStyle = css({
display: 'flex',
gap: '0.25rem',
flexWrap: 'wrap',
overflow: 'hidden',
});
13 changes: 12 additions & 1 deletion client/src/components/StepList/Step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {Bill, Step as StepType} from 'types/serviceType';
import {Text} from '@components/Design';

import getEventIdByUrl from '@utils/getEventIdByUrl';

Check failure on line 11 in client/src/components/StepList/Step.tsx

View workflow job for this annotation

GitHub Actions / test

There should be at least one empty line between import groups
import {css} from '@emotion/react';

Check failure on line 12 in client/src/components/StepList/Step.tsx

View workflow job for this annotation

GitHub Actions / test

`@emotion/react` import should occur before import of `@components/Design/components/Amount/Amount`

interface Prop {
step: StepType;
Expand All @@ -25,7 +26,17 @@ const Step = ({step}: Prop) => {
<ListItem>
<ListItem.Row>
<ChipGroup color="gray" texts={step.members.map(member => member.name)} />
<Text size="caption" textColor="gray">

<Text
size="caption"
textColor="gray"
css={css`
flex-shrink: 0;
width: 2rem;
text-align: end;
margin-left: 0.5rem;
`}
>
{step.members.length}
</Text>
</ListItem.Row>
Expand Down

0 comments on commit 629458e

Please sign in to comment.