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 {
5252 const q = getQuery ( ) ;
5353 const { tabId } = this . props ;
5454 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 ] ) } ) ;
5957 }
6058 }
6159
@@ -64,14 +62,16 @@ export default class TabsItemsLoader extends Component {
6462 }
6563
6664 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+ } ) ;
7575 } ) ;
7676 }
7777
Original file line number Diff line number Diff line change 2121
2222 @include xs-to-sm {
2323 margin-bottom : 20px ;
24+ margin-right : 0 ;
2425 }
2526}
2627
128129
129130 @include xs-to-md {
130131 margin-top : 47px ;
132+ min-width : auto ;
131133 }
132134
133135 .shareButtons {
350352 font-weight : bolder ;
351353 text-decoration : none ;
352354 text-transform : uppercase ;
353- line-height : 40 px ;
355+ line-height : 38 px ;
354356 padding : 0 20px ;
355357
356358 & :hover {
You can’t perform that action at this time.
0 commit comments