From 27292b979472ee57eb47622b9149a15b6834c40a Mon Sep 17 00:00:00 2001 From: Lowhearth Date: Tue, 6 Aug 2019 11:24:45 +0200 Subject: [PATCH] Adjusted article padding and corrected Row's buttons position (1465) (#1469) * Adjusted article padding and corrected Row's buttons position. Fixes #1465 * Corrected name-input overlapping account's id when editing * Adjusted Row-buttons to keep bottom margin consistent and added name ellipsis. * Removed buttons height to prevent bottom div displacement. Adjusted text-wrap to work with spaces --- packages/app-staking/src/Overview/Address.tsx | 2 +- packages/ui-app/src/Row.tsx | 19 +++++++++++++------ packages/ui-app/src/styles/app.css | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/app-staking/src/Overview/Address.tsx b/packages/app-staking/src/Overview/Address.tsx index 357a3aa70f..080327b7cc 100644 --- a/packages/app-staking/src/Overview/Address.tsx +++ b/packages/app-staking/src/Overview/Address.tsx @@ -232,7 +232,7 @@ export default withMulti( .blockNumber { background: #3f3f3f; border-radius: 0.25rem; - bottom: 0.75rem; + top: 0rem; box-shadow: 0 3px 3px rgba(0,0,0,.2); color: #eee; font-size: 1.5rem; diff --git a/packages/ui-app/src/Row.tsx b/packages/ui-app/src/Row.tsx index 005b1c3c92..acacf502bc 100644 --- a/packages/ui-app/src/Row.tsx +++ b/packages/ui-app/src/Row.tsx @@ -65,6 +65,7 @@ export const styles = ` } .ui--Row-balances { + display: flex; .column { display: block; @@ -84,10 +85,12 @@ export const styles = ` } .ui--Row-buttons { - position: absolute; - right: 0.5rem; - top: 0.5rem; + position: relative; + margin-right: -0.5rem; + margin-top: -0.5rem; white-space: nowrap; + height: 0rem; + overflow: visible; button.ui.button:last-child { margin-right: 0; @@ -129,6 +132,7 @@ export const styles = ` } .ui--Row-address-or-name { + display: flex; box-sizing: border-box; margin: 0; padding: 0; @@ -137,7 +141,10 @@ export const styles = ` white-space: normal; .withName { + white-space: nowrap; text-transform: uppercase; + overflow: hidden; + text-overflow: inherit; } } @@ -145,9 +152,9 @@ export const styles = ` input { height: 1em; text-transform: uppercase; - margin-top: -0.3em; - margin-bottom: -0.35em; + margin-top: -0.3em; } + } .ui--Row-tags { @@ -302,8 +309,8 @@ class Row

extends React.PureComponent {name} - {isEditable && this.renderEditIcon()} + {isEditable && this.renderEditIcon()} ) } diff --git a/packages/ui-app/src/styles/app.css b/packages/ui-app/src/styles/app.css index 6a9e903103..9ffcc25529 100644 --- a/packages/ui-app/src/styles/app.css +++ b/packages/ui-app/src/styles/app.css @@ -73,7 +73,7 @@ article { border-radius: 0.25rem; box-sizing: border-box; margin: 0.25rem; - padding: 1.25rem 1.5rem; + padding: 1.25rem; position: relative; text-align: left;