aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-03-21 01:57:03 +0800
committerGitHub <noreply@github.com>2017-03-21 01:57:03 +0800
commitf3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3 (patch)
tree4ff4f574c6d349257bf92f73cc8234402635fad8
parent00f1a2d78d01301f51157e9c8b8352dc0796d034 (diff)
parent35c05607b091f6064be6802a2eb1023d837c9c85 (diff)
downloadtangerine-wallet-browser-f3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3.tar
tangerine-wallet-browser-f3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3.tar.gz
tangerine-wallet-browser-f3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3.tar.bz2
tangerine-wallet-browser-f3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3.tar.lz
tangerine-wallet-browser-f3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3.tar.xz
tangerine-wallet-browser-f3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3.tar.zst
tangerine-wallet-browser-f3da24cd04a2ca74d5006d6b615a7f26d8b5dfa3.zip
Merge pull request #1215 from MetaMask/ImprovePersonalSignStyle
Improve personal_sign style
-rw-r--r--ui/app/components/binary-renderer.js21
-rw-r--r--ui/app/components/pending-personal-msg-details.js13
2 files changed, 23 insertions, 11 deletions
diff --git a/ui/app/components/binary-renderer.js b/ui/app/components/binary-renderer.js
index a9d49b128..0b6a1f5c2 100644
--- a/ui/app/components/binary-renderer.js
+++ b/ui/app/components/binary-renderer.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const ethUtil = require('ethereumjs-util')
+const extend = require('xtend')
module.exports = BinaryRenderer
@@ -12,20 +13,22 @@ function BinaryRenderer () {
BinaryRenderer.prototype.render = function () {
const props = this.props
- const { value } = props
+ const { value, style } = props
const text = this.hexToText(value)
+ const defaultStyle = extend({
+ width: '315px',
+ maxHeight: '210px',
+ resize: 'none',
+ border: 'none',
+ background: 'white',
+ padding: '3px',
+ }, style)
+
return (
h('textarea.font-small', {
readOnly: true,
- style: {
- width: '315px',
- maxHeight: '210px',
- resize: 'none',
- border: 'none',
- background: 'white',
- padding: '3px',
- },
+ style: defaultStyle,
defaultValue: text,
})
)
diff --git a/ui/app/components/pending-personal-msg-details.js b/ui/app/components/pending-personal-msg-details.js
index fa2c6416c..1050513f2 100644
--- a/ui/app/components/pending-personal-msg-details.js
+++ b/ui/app/components/pending-personal-msg-details.js
@@ -40,9 +40,18 @@ PendingMsgDetails.prototype.render = function () {
}),
// message data
- h('div', [
+ h('div', {
+ style: {
+ height: '260px',
+ },
+ }, [
h('label.font-small', { style: { display: 'block' } }, 'MESSAGE'),
- h(BinaryRenderer, { value: data }),
+ h(BinaryRenderer, {
+ value: data,
+ style: {
+ height: '215px',
+ },
+ }),
]),
])