Browse Source

Fix css for toot button when uploading images (#2161)

closed-social-glitch-2
Tomohiro Suwa 7 years ago
committed by Eugen
parent
commit
7832425fdd
2 changed files with 6 additions and 3 deletions
  1. +4
    -1
      app/assets/javascripts/components/components/button.jsx
  2. +2
    -2
      app/assets/javascripts/components/features/compose/components/compose_form.jsx

+ 4
- 1
app/assets/javascripts/components/components/button.jsx View File

@ -44,7 +44,10 @@ const Button = React.createClass({
cursor: 'pointer',
lineHeight: `${this.props.size}px`,
borderRadius: '4px',
textDecoration: 'none'
textDecoration: 'none',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
overflow: 'hidden'
};
return (

+ 2
- 2
app/assets/javascripts/components/features/compose/components/compose_form.jsx View File

@ -197,9 +197,9 @@ const ComposeForm = React.createClass({
<SpoilerButtonContainer />
</div>
<div style={{ display: 'flex' }}>
<div style={{ display: 'flex', minWidth: 0 }}>
<div style={{ paddingTop: '10px', marginRight: '16px', lineHeight: '36px' }}><CharacterCounter max={500} text={text} /></div>
<div style={{ paddingTop: '10px' }}><Button text={publishText} onClick={this.handleSubmit} disabled={disabled || text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length > 500} /></div>
<div style={{ paddingTop: '10px', overflow: 'hidden' }}><Button text={publishText} onClick={this.handleSubmit} disabled={disabled || text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length > 500} block /></div>
</div>
</div>
</div>

Loading…
Cancel
Save