From 66df4f64105100b0eddc4c1212649337dbc3b307 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 7 Feb 2017 08:46:17 +0100 Subject: [PATCH] Fix AccountCard stretch to 100% (#4450) --- js/src/modals/DappPermissions/dappPermissions.css | 4 +++- js/src/ui/Portal/portal.js | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/js/src/modals/DappPermissions/dappPermissions.css b/js/src/modals/DappPermissions/dappPermissions.css index 22df5d24b..3f2559bb3 100644 --- a/js/src/modals/DappPermissions/dappPermissions.css +++ b/js/src/modals/DappPermissions/dappPermissions.css @@ -31,8 +31,10 @@ } } -.selected, .unselected { +.selected, +.unselected { margin-bottom: 0.25em; + width: 100%; &:focus { outline: none; diff --git a/js/src/ui/Portal/portal.js b/js/src/ui/Portal/portal.js index 03b8b1f18..c24021cdb 100644 --- a/js/src/ui/Portal/portal.js +++ b/js/src/ui/Portal/portal.js @@ -34,7 +34,11 @@ export default class Portal extends Component { activeStep: PropTypes.number, busy: PropTypes.bool, busySteps: PropTypes.array, - buttons: PropTypes.array, + buttons: PropTypes.oneOfType([ + PropTypes.array, + PropTypes.node, + PropTypes.object + ]), children: PropTypes.node, className: PropTypes.string, hideClose: PropTypes.bool,