Skip to content

Commit

Permalink
#201 fix: 마켓 아이템 3줄 이상될때 튀어나오는 오류수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junseok44 committed Feb 13, 2024
1 parent cad0980 commit fa1b886
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/organisms/Market/StockItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Margin from "../../atoms/Margin";

const StockItemBox = styled(ContentItemBoxContainer)`
width: ${useResponsiveFontSize(150)}px;
height: ${useResponsiveFontSize(170)}px;
height: ${useResponsiveFontSize(175)}px;
`;

const StockItemSecondBox = styled(ContentItemBoxContainer)`
Expand Down Expand Up @@ -48,9 +48,13 @@ export const StockItem = ({
}}
>
<Text size="md" weight="bold" color={theme.textDim}>
{name.length > 15 ? name.slice(0, 15) + "..." : name}
{name.length > 17 ? name.slice(0, 17) + "..." : name}
</Text>
<Margin margin={30}></Margin>
<View
style={{
flex: 1,
}}
></View>
<View>
<TextWithIcon
text={percentFormat + "%"}
Expand Down

0 comments on commit fa1b886

Please sign in to comment.