forked from newthuhole/hole_thu_frontend
Merge branch 'master' of https://github.com/ashawkey/webhole
This commit is contained in:
@@ -37,27 +37,46 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: .5em;
|
margin-bottom: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form-bar label {
|
.post-form-bar label {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form-bar input[type=file] {
|
.post-form-bar input[type=file] {
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0 0 0 .5em;
|
padding: 0 0 0 .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 580px) {
|
@media screen and (max-width: 580px) {
|
||||||
.post-form-bar input[type=file] {
|
.post-form-bar input[type=file] {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 320px) {
|
||||||
|
.post-form-bar input[type=file] {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.post-form-bar button {
|
.post-form-bar button {
|
||||||
flex: 0 0 8em;
|
flex: 0 0 6em;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 580px) {
|
||||||
|
.post-form-bar button {
|
||||||
|
flex: 0 0 4.5em;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.post-form-img-tip {
|
.post-form-img-tip {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
margin-top: -.5em;
|
margin-top: -.5em;
|
||||||
margin-bottom: .5em;
|
margin-bottom: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form textarea {
|
.post-form textarea {
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -476,7 +476,7 @@ export class ReplyForm extends Component {
|
|||||||
{
|
{
|
||||||
this.state.preview ?
|
this.state.preview ?
|
||||||
<div className='reply-preview'>
|
<div className='reply-preview'>
|
||||||
<HighlightedMarkdown text={this.state.text} color_picker={this.props.color_picker} show_pid={this.props.show_pid} />
|
<HighlightedMarkdown key={this.props.pid} text={this.state.text} color_picker={this.props.color_picker} show_pid={this.props.show_pid} />
|
||||||
</div> :
|
</div> :
|
||||||
<SafeTextarea key={this.props.pid} ref={this.area_ref} id={this.props.pid} on_change={this.on_change_bound} on_submit={this.on_submit.bind(this)} />
|
<SafeTextarea key={this.props.pid} ref={this.area_ref} id={this.props.pid} on_change={this.on_change_bound} on_submit={this.on_submit.bind(this)} />
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user