Skip to content

Commit 093e5cf

Browse files
authored
Merge pull request #7 from lightningrodlabs/feat/button-height
Reduce height of download buttons
2 parents a52e4b0 + 40b6eed commit 093e5cf

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

src/components/Button/Button.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export type ButtonProps = {
2121
maxHeight?: string;
2222
height?: string;
2323
margin?: string;
24+
lineHeight: string;
2425
};
2526

2627
const Button: React.FC<ButtonProps> = ({
@@ -37,6 +38,7 @@ const Button: React.FC<ButtonProps> = ({
3738
maxHeight,
3839
height,
3940
margin,
41+
lineHeight,
4042
}) => {
4143
return (
4244
<button
@@ -46,7 +48,13 @@ const Button: React.FC<ButtonProps> = ({
4648
} ${externalLinkIcon ? "with-external-link" : ""}`}
4749
onClick={onClick}
4850
data-href={href}
49-
style={{ maxWidth: maxWidth ? maxWidth : "", maxHeight: maxHeight ? maxHeight : "", height: height ? height: "", margin: margin ? margin : "" }}
51+
style={{
52+
maxWidth: maxWidth ? maxWidth : "",
53+
maxHeight: maxHeight ? maxHeight : "",
54+
height: height ? height : "",
55+
margin: margin ? margin : "",
56+
lineHeight: lineHeight ? lineHeight : "",
57+
}}
5058
>
5159
{visualIcon && <span className="visual-icon">{visualIcon}</span>}
5260
{text}

src/components/Footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Footer: React.FC<FooterProps> = ({}) => {
2525

2626
<div className="footer-row second">
2727
<p>
28-
© 2020-2022 Harris-Braun Enterprises, LLC, operating as{" "}
28+
© 2020-2025 Harris-Braun Enterprises, LLC, operating as{" "}
2929
<a href="https://lightningrodlabs.org/" target="_blank">
3030
{" "}
3131
Lightningrod Labs

src/pages/index.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ const IndexPage = () => {
335335
withBackground
336336
maxWidth="300px"
337337
margin="4px"
338+
height="70px"
339+
lineHeight="1.2"
338340
title="https://github.com/lightningrodlabs/acorn-desktop/releases/download/v11.3.1/org.lightningrodlabs.acorn-11.3.1-arm64.dmg"
339341
onClick={() => {
340342
window.open(
@@ -349,6 +351,8 @@ const IndexPage = () => {
349351
withBackground
350352
maxWidth="300px"
351353
margin="4px"
354+
height="70px"
355+
lineHeight="1.2"
352356
title="https://github.com/lightningrodlabs/acorn-desktop/releases/download/v11.3.1/org.lightningrodlabs.acorn-11.3.1-x64.dmg"
353357
onClick={() => {
354358
window.open(
@@ -365,6 +369,8 @@ const IndexPage = () => {
365369
withBackground
366370
maxWidth="300px"
367371
margin="4px"
372+
height="70px"
373+
lineHeight="1.2"
368374
title="https://github.com/lightningrodlabs/acorn-desktop/releases/download/v11.3.1/org.lightningrodlabs.acorn_11.3.1_amd64.deb"
369375
onClick={() => {
370376
window.open(
@@ -379,6 +385,8 @@ const IndexPage = () => {
379385
withBackground
380386
maxWidth="300px"
381387
margin="4px"
388+
height="70px"
389+
lineHeight="1.2"
382390
title="https://github.com/lightningrodlabs/acorn-desktop/releases/download/v11.3.1/org.lightningrodlabs.acorn-11.3.1.AppImage"
383391
onClick={() => {
384392
window.open(
@@ -395,7 +403,8 @@ const IndexPage = () => {
395403
withBackground
396404
maxHeight="90px"
397405
margin="4px"
398-
height="90px"
406+
height="70px"
407+
lineHeight="1.2"
399408
title="https://github.com/lightningrodlabs/acorn-desktop/releases/download/v11.3.1/org.lightningrodlabs.acorn-11.3.1-setup.exe"
400409
onClick={() => {
401410
window.open(

0 commit comments

Comments
 (0)