Skip to content

Commit

Permalink
fix :: 셀 글자 길이에 맞게 width 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
inung1004 committed Nov 2, 2023
1 parent a74b01e commit 2fa672d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/main/ExcelValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const ExcelValue = ({ value }: { value: string }) => {
return (
<Wrapper>
<input
style={{ width: `${value.length * 14}px` }}
type="text"
value={input}
onChange={(e) => setInput(e.target.value)}
Expand All @@ -22,7 +23,6 @@ const Wrapper = styled.td`
background: ${({ theme }) => theme.colors.WHITE};
> input {
width: 100%;
height: 100%;
border: none;
font-size: 16px;
Expand Down

0 comments on commit 2fa672d

Please sign in to comment.