Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"es": "npm run clean-es && node scripts/use-module-babelrc.js && babel src -d es && node scripts/restore-original-babelrc.js",
"clean-lib": "rm -rf lib && mkdir lib",
"clean-es": "rm -rf es && mkdir es",
"prepublish": "npm run lib && npm run es",
"prepare": "npm run lib && npm run es",
"docs": "npm run docs-server",
"docs-server": "node ./scripts/docs-server",
"docs-dist": "node ./scripts/docs-dist",
Expand Down
22 changes: 15 additions & 7 deletions src/components/twitter/Twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ export const Twitter = ({ onChange, onSwatchHover, hex, colors, width, triangle,
borderColor: 'transparent transparent rgba(0,0,0,.1) transparent',
position: 'absolute',
},
inputWrapper: {
display: 'flex',
flexWrap: 'nowrap',
minWidth: '130px',
},
hash: {
background: '#F0F0F0',
height: '30px',
Expand All @@ -52,6 +57,7 @@ export const Twitter = ({ onChange, onSwatchHover, hex, colors, width, triangle,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
flexShrink: '0',
},
input: {
width: '100px',
Expand Down Expand Up @@ -139,13 +145,15 @@ export const Twitter = ({ onChange, onSwatchHover, hex, colors, width, triangle,
/>
)
}) }
<div style={ styles.hash }>#</div>
<EditableInput
label={null}
style={{ input: styles.input }}
value={ hex.replace('#', '') }
onChange={ handleChange }
/>
<span style={ styles.inputWrapper }>
<div style={ styles.hash }>#</div>
<EditableInput
label={null}
style={{ input: styles.input }}
value={ hex.replace('#', '') }
onChange={ handleChange }
/>
</span>
<div style={ styles.clear } />
</div>
</div>
Expand Down