File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,8 @@ export default class TabsItemsLoader extends Component {
52
52
const q = getQuery ( ) ;
53
53
const { tabId } = this . props ;
54
54
const { tabIndex } = this . state ;
55
- if ( q . tabs && q . tabs [ tabId ] && Number ( q . tabs [ tabId ] ) !== tabIndex ) {
56
- this . setState ( { tabIndex : Number ( q . tabs [ tabId ] ) } ) ;
57
- } else {
58
- this . updatePageUrl ( ) ;
55
+ if ( q . tracks && q . tracks [ tabId ] && Number ( q . tracks [ tabId ] ) !== tabIndex ) {
56
+ this . setState ( { tabIndex : Number ( q . tracks [ tabId ] ) } ) ;
59
57
}
60
58
}
61
59
@@ -64,14 +62,16 @@ export default class TabsItemsLoader extends Component {
64
62
}
65
63
66
64
updatePageUrl ( ) {
67
- const q = getQuery ( ) ;
68
- const { tabId } = this . props ;
69
- const { tabIndex } = this . state ;
70
- updateQuery ( {
71
- tabs : {
72
- ...q . tabs ,
73
- [ tabId ] : tabIndex || 0 ,
74
- } ,
65
+ this . setState ( ( state ) => {
66
+ const q = getQuery ( ) ;
67
+ const { tabId } = this . props ;
68
+ const { tabIndex } = state ;
69
+ updateQuery ( {
70
+ tabs : {
71
+ ...q . tracks ,
72
+ [ tabId ] : tabIndex || 0 ,
73
+ } ,
74
+ } ) ;
75
75
} ) ;
76
76
}
77
77
Original file line number Diff line number Diff line change 21
21
22
22
@include xs-to-sm {
23
23
margin-bottom : 20px ;
24
+ margin-right : 0 ;
24
25
}
25
26
}
26
27
128
129
129
130
@include xs-to-md {
130
131
margin-top : 47px ;
132
+ min-width : auto ;
131
133
}
132
134
133
135
.shareButtons {
350
352
font-weight : bolder ;
351
353
text-decoration : none ;
352
354
text-transform : uppercase ;
353
- line-height : 40 px ;
355
+ line-height : 38 px ;
354
356
padding : 0 20px ;
355
357
356
358
& :hover {
You can’t perform that action at this time.
0 commit comments