Skip to content

Commit 9706d35

Browse files
committed
Thrive filter final fixes
1 parent 5f5f797 commit 9706d35

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/assets/images/tc-edu/icon-clear-filter.svg

Lines changed: 1 addition & 1 deletion
Loading

src/shared/components/Contentful/TracksFilter/TracksFilter.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ export class TracksFilterInner extends Component {
6161
/**
6262
* Reset filter form to init value
6363
*/
64-
onReset(noClose) {
64+
onReset(isMobile) {
6565
const {
66-
onClose,
6766
sortBy,
6867
onApply,
6968
} = this.props;
@@ -78,8 +77,7 @@ export class TracksFilterInner extends Component {
7877
return o;
7978
}),
8079
}, () => {
81-
if (!noClose) onClose();
82-
onApply(this.state);
80+
if (!isMobile) onApply(this.state);
8381
});
8482
}
8583

@@ -110,7 +108,7 @@ export class TracksFilterInner extends Component {
110108
<span>filter</span>
111109
<button
112110
type="button"
113-
onClick={() => this.onReset(true)}
111+
onClick={() => this.onReset()}
114112
className={`${theme['clear-filter']} ${theme['is-mobile-hidden']}`}
115113
>
116114
<IconClearFilter />&nbsp;&nbsp;CLEAR ALL FILTERS
@@ -202,7 +200,7 @@ export class TracksFilterInner extends Component {
202200
<button
203201
type="button"
204202
className={theme['btn-reset']}
205-
onClick={() => this.onReset()}
203+
onClick={() => this.onReset(true)}
206204
>CLEAR
207205
</button>
208206
<button

src/shared/components/Contentful/TracksFilter/themes/default.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ $green-color: #137d60;
128128
}
129129

130130
.track-author-container {
131-
max-width: none;
131+
min-width: 250px;
132132
}
133133

134134
.track-date-container {

0 commit comments

Comments
 (0)