Skip to content

Commit 5963b16

Browse files
committed
fixed issue with buttons
1 parent ce255b0 commit 5963b16

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/components/buttons/FrameworkButton.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import React from "react"
33

44
const FrameworkButton = ({ children, className, img, onClick }) => (
55
<button className={`${className} cursor-pointer `} onClick={onClick}>
6-
<div className="grid grid-cols-2 text-center">
7-
<span>{children} </span>
8-
<img src={img} alt="framework" className="w-6 ml-5" />
9-
</div>
6+
{children}
7+
<img src={img} alt="framework" className="w-6 ml-5 inline-block" />
108
</button>
119
)
1210

@@ -18,6 +16,6 @@ FrameworkButton.propTypes = {
1816
}
1917

2018
FrameworkButton.defaultProps = {
21-
className: `font-display rounded-px text-right py-1`,
19+
className: `font-display rounded-px text-right py-1 px-16`,
2220
}
2321
export default FrameworkButton

src/components/buttons/GithubButtton.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const GithubButton = ({ children, className, href }) => (
88
rel="noopener noreferrer"
99
href={href}
1010
>
11-
<span className="flex flex-row">
12-
{children} <img src={Github} alt="framework" className="w-6 ml-2" />
13-
</span>
11+
{children} <img src={Github} alt="framework" className="w-6 inline-block" />
1412
</a>
1513
)
1614

0 commit comments

Comments
 (0)