Skip to content

Commit a628a04

Browse files
authored
Fix overflow of view on Github Button (#16)
1 parent 5fd6533 commit a628a04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/OpenSourceExample.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import Link from "@docusaurus/Link";
55

66
export const OpenSourceExample = ({repoUrl='https://github.com/AMRC-FactoryPlus/amrc-connectivity-stack', buttonText='Placeholder'}) => {
77
return (
8-
<div className={'bg-brand-10 p-6 mb-6 flex flex-col sm:flex-row gap-6 sm:items-center justify-between border-solid border-brand'}>
9-
<div className="flex flex-col">
8+
<div className={'bg-brand-10 p-6 mb-6 flex flex-row flex-wrap gap-6 items-center justify-between border-solid border-brand'}>
9+
<div className="flex flex-col grow-[6]">
1010
<span className="flex text-sm items-center gap-1 text-brand-70 ">
1111
<FontAwesomeIcon icon={faGithub}/>
1212
<div>Open Source Example</div>
1313
</span>
14-
<div className="md:flex md:items-center md:justify-between min-w-0 flex-1 mb-3">
14+
<div className="flex-1 mb-3">
1515
<h2 className="text-2xl text-brand sm:truncate sm:text-2xl sm:tracking-tight mb-0">
1616
{buttonText}
1717
</h2>
1818
</div>
1919
<div className={'text-sm text-brand-80'}>See how the AMRC have implemented this component in the AMRC Connectivity Stack</div>
2020
</div>
21-
<Link className={'hover:no-underline'}
21+
<Link className={'hover:no-underline grow-[1]'}
2222
to={repoUrl}>
2323
<div className="">
2424
<div

0 commit comments

Comments
 (0)