Add more sort options and improve styling

This commit is contained in:
Chi Vinh Le
2017-08-25 20:15:07 +07:00
parent 9e2f6f1f63
commit e51e8c543f
32 changed files with 314 additions and 87 deletions
@@ -0,0 +1,8 @@
.offTopic {
height: 100%;
}
.offTopicLabel {
padding: 10px 20px;
display: block;
}
@@ -1,5 +1,5 @@
import React from 'react';
import styles from './styles.css';
import styles from './OffTopicCheckbox.css';
import {t} from 'plugin-api/beta/client/services';
@@ -0,0 +1,16 @@
.label {
display: block;
cursor: pointer;
width: 100%;
padding: 4px 16px 4px 10px;
box-sizing: border-box;
}
.input {
cursor: pointer;
margin-right: 6px;
}
:global(.talk-plugin-off-topic-comment) {
display: none;
}
@@ -1,5 +1,5 @@
import React from 'react';
import styles from './styles.css';
import styles from './OffTopicFilter.css';
export default class OffTopicFilter extends React.Component {
@@ -20,12 +20,15 @@ export default class OffTopicFilter extends React.Component {
render() {
return (
<div className={styles.viewingOption}>
<label>
<input type="checkbox" onChange={this.handleChange} checked={this.props.checked} />
Hide Off-Topic Comments
</label>
</div>
<label className={styles.label}>
<input
type="checkbox"
onChange={this.handleChange}
checked={this.props.checked}
className={styles.input}
/>
Hide Off-Topic Comments
</label>
);
}
}
@@ -1,12 +1,3 @@
.offTopic {
height: 100%;
}
.offTopicLabel {
padding: 10px 20px;
display: block;
}
.tag {
background: #D2D7D3;
font-size: 12px;
@@ -17,10 +8,3 @@
padding: 5px 5px;
border-radius: 2px;
}
.viewingOption {
}
:global(.talk-plugin-off-topic-comment) {
display: none;
}
@@ -1,5 +1,5 @@
import React from 'react';
import styles from './styles.css';
import styles from './OffTopicTag.css';
import {t} from 'plugin-api/beta/client/services';
import {isTagged} from 'plugin-api/beta/client/utils';