Skip to content

Commit

Permalink
change style
Browse files Browse the repository at this point in the history
  • Loading branch information
jjj201200 committed Aug 16, 2022
1 parent 4f2d064 commit 7494b25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions previewSite/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Wrapper = styled.div`
box-sizing: border-box;
font-size: 20px;
z-index: 1;
::placeholder {
font-size: 16px;
}
Expand Down Expand Up @@ -90,7 +90,7 @@ const Wrapper = styled.div`
display: grid;
//grid-template-columns: repeat(auto-fit, 50px);
grid-template-columns: repeat(4, var(--icon-size));
grid-template-columns: repeat(4, calc(var(--icon-size) + 10px * 2));
grid-gap: var(--gap-size);
justify-content: center;
margin: 0 auto;
Expand Down Expand Up @@ -328,8 +328,8 @@ export default () => {
const {name, size} = iconName;
const IconComponent = ReactIcons[name];
return <IconBlockWrapper key={name} onClick={onClick} style={{
gridColumnStart: 1,
gridColumnEnd: ((size[0] - 15) / 30),
//gridColumnStart: 1,
gridColumn: `span ${((size[0] - 15) / 30)}`,
}}>
<div className="inner">
<IconComponent/>
Expand Down

0 comments on commit 7494b25

Please sign in to comment.