sforkowany z mirror/soapbox
ComposeForm: load it differently so the SVG icons are already loaded when it expands
rodzic
09f57447c6
commit
cd3cf2379b
|
@ -355,28 +355,25 @@ export default class ComposeForm extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
</AutosuggestTextarea>
|
</AutosuggestTextarea>
|
||||||
|
|
||||||
{
|
<div className='compose-form__buttons-wrapper'>
|
||||||
!condensed &&
|
<div className='compose-form__buttons'>
|
||||||
<div className='compose-form__buttons-wrapper'>
|
<UploadButtonContainer />
|
||||||
<div className='compose-form__buttons'>
|
<PollButtonContainer />
|
||||||
<UploadButtonContainer />
|
<PrivacyDropdownContainer />
|
||||||
<PollButtonContainer />
|
<ScheduleButtonContainer />
|
||||||
<PrivacyDropdownContainer />
|
<SpoilerButtonContainer />
|
||||||
<ScheduleButtonContainer />
|
<MarkdownButtonContainer />
|
||||||
<SpoilerButtonContainer />
|
|
||||||
<MarkdownButtonContainer />
|
|
||||||
</div>
|
|
||||||
{maxTootChars && (
|
|
||||||
<div className='compose-form__counter'>
|
|
||||||
{/* <TextCharacterCounter max={maxTootChars} text={text} /> */}
|
|
||||||
<VisualCharacterCounter max={maxTootChars} text={text} />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<div className='compose-form__publish'>
|
|
||||||
<div className='compose-form__publish-button-wrapper'><Button text={publishText} onClick={this.handleSubmit} disabled={disabledButton} block /></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
}
|
{maxTootChars && (
|
||||||
|
<div className='compose-form__counter'>
|
||||||
|
{/* <TextCharacterCounter max={maxTootChars} text={text} /> */}
|
||||||
|
<VisualCharacterCounter max={maxTootChars} text={text} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<div className='compose-form__publish'>
|
||||||
|
<div className='compose-form__publish-button-wrapper'><Button text={publishText} onClick={this.handleSubmit} disabled={disabledButton} block /></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,12 @@
|
||||||
min-height: 46px;
|
min-height: 46px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.compose-form__buttons-wrapper {
|
||||||
|
height: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__modifiers {
|
&__modifiers {
|
||||||
|
|
Ładowanie…
Reference in New Issue