Skip to content

Commit 7d3c776

Browse files
committed
fix vertical button margin in dialogs
1 parent eee8bff commit 7d3c776

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

src/explorer/replaceImportDialog/replaceImportDialog.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
.#{bp.$ns}-dialog.pb-explorer-replaceImportDialog {
77
.#{bp.$ns}-dialog-footer-actions {
88
flex-direction: column;
9+
10+
.#{bp.$ns}-button {
11+
margin: 0;
12+
}
913
}
1014
}

src/sponsor/SponsorDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: MIT
2-
// Copyright (c) 2022 The Pybricks Authors
2+
// Copyright (c) 2022-2023 The Pybricks Authors
33

4+
import './sponsorsDialog.scss';
45
import { AnchorButton, Classes, Dialog, Intent } from '@blueprintjs/core';
56
import classNames from 'classnames';
67
import React from 'react';
@@ -24,6 +25,7 @@ const SponsorDialog: React.VoidFunctionComponent = () => {
2425

2526
return (
2627
<Dialog
28+
className="pb-sponsors-dialog"
2729
title={i18n.translate('title', { pybricks: 'Pybricks' })}
2830
isOpen={showDialog}
2931
onClose={() => dispatch(sponsorHideDialog())}

src/sponsor/sponsorsDialog.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright (c) 2023 The Pybricks Authors
3+
4+
@use '@blueprintjs/core/lib/scss/variables' as bp;
5+
6+
.#{bp.$ns}-dialog.pb-sponsors-dialog {
7+
.#{bp.$ns}-dialog-footer-actions {
8+
flex-direction: column;
9+
10+
.#{bp.$ns}-button {
11+
margin: 0;
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)