Skip to content

Commit

Permalink
refactor: buttons width 100% (#379)
Browse files Browse the repository at this point in the history
* feat: make btns width 100%

looks better :)

before/after

* fixup refund button
  • Loading branch information
dni authored Jan 3, 2024
1 parent 2a5ee53 commit 5cb5e25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/RefundStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const RefundStep = () => {
<hr />
<div class="btns btns-space-between">
<button
class="btn btn-light"
class="btn btn-light no-grow"
onClick={() => navigate("/swap/" + params.id)}>
{t("backup_skip")}
</button>
Expand Down
18 changes: 7 additions & 11 deletions src/components/DownloadRefund.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,13 @@ const DownloadRefund = () => {
};

return (
<div class="download-refund">
<button
class="btn btn-success"
onclick={() =>
isMobile
? downloadRefundQr(swap())
: downloadRefundJson(swap())
}>
{t("download_refund_file")}
</button>
</div>
<button
class="btn btn-success"
onclick={() =>
isMobile ? downloadRefundQr(swap()) : downloadRefundJson(swap())
}>
{t("download_refund_file")}
</button>
);
};

Expand Down
6 changes: 5 additions & 1 deletion src/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,14 @@ hr.spacer {
.btns-space-between {
justify-content: space-between;
}
.btns > * {
.btns .btn {
display: inline-block;
width: auto;
margin: 3px;
flex-grow: 1;
}
.btns .no-grow {
flex-grow: 0;
}

.fee {
Expand Down

2 comments on commit 5cb5e25

@vercel
Copy link

@vercel vercel bot commented on 5cb5e25 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5cb5e25 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.