Skip to content

Commit 2c9e89d

Browse files
committed
12 - Change the button padding
1 parent f96fb83 commit 2c9e89d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/theme/components/Post.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export const PostContainer = ({
9393
</DownFade>
9494
</CardContainer>
9595
{pageId && (
96-
<Flex justifyContent="center" mt="4" mb="2" fontSize={[2, 3]}>
97-
<DownFade>
96+
<DownFade>
97+
<Flex justifyContent="center" mt="4" mb="2" fontSize={[2, 3]}>
9898
<Button variant="more">
9999
<RebassLink
100100
href={`/${pageId}`}
@@ -104,8 +104,8 @@ export const PostContainer = ({
104104
More
105105
</RebassLink>
106106
</Button>
107-
</DownFade>
108-
</Flex>
107+
</Flex>
108+
</DownFade>
109109
)}
110110
</>
111111
);

src/theme/rebass-preset.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ declare module '@rebass/preset' {
141141
}
142142

143143
interface Button {
144-
p?: number;
144+
p?: number | string;
145145
m?: number;
146146
variant?: string;
147147
color?: string;

src/theme/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const theme: Theme = {
4545
fontWeight: '600',
4646
border: `3px solid ${colors.secondary}`,
4747
boxShadow: `inset 0 0 2px ${colors.muted}`,
48+
p: '8px 10%',
4849
},
4950
},
5051
fonts: {

0 commit comments

Comments
 (0)