@@ -44,7 +44,6 @@ export class CleanPortfolioTheme extends DDDSuper(HAXCMSLitElementTheme) {
44
44
this . copyrightYear = 0 ; // for footer copyright year
45
45
46
46
// MobX variables/listeners
47
- this . location = null ;
48
47
this . categoryTags = [ ] ;
49
48
this . allTags = [ ] ;
50
49
this . items = [ ] ;
@@ -80,18 +79,6 @@ export class CleanPortfolioTheme extends DDDSuper(HAXCMSLitElementTheme) {
80
79
}
81
80
this . __disposer . push ( reaction ) ;
82
81
} ) ;
83
-
84
- autorun ( ( ) => {
85
- let location = toJS ( store . location ) ;
86
- if ( globalThis . document && globalThis . document . startViewTransition ) {
87
- globalThis . document . startViewTransition ( ( ) => {
88
- this . location = location ;
89
- } ) ;
90
- }
91
- else {
92
- this . location = location ;
93
- }
94
- } ) ;
95
82
96
83
// determines active layout based on following conditions:
97
84
// - if the current page has no child, it's Text
@@ -262,7 +249,6 @@ export class CleanPortfolioTheme extends DDDSuper(HAXCMSLitElementTheme) {
262
249
activeItem : { type : Object } ,
263
250
activeParent : { type : Object } ,
264
251
ancestorItem : { type : Object } ,
265
- location : { type : Object } ,
266
252
topItems : { type : Array } ,
267
253
items : { type : Array } ,
268
254
activeTags : { type : Array } ,
@@ -731,6 +717,7 @@ export class CleanPortfolioTheme extends DDDSuper(HAXCMSLitElementTheme) {
731
717
flex-wrap: wrap;
732
718
gap: 12px;
733
719
margin-bottom: 20px;
720
+ view-transition-name: location;
734
721
}
735
722
736
723
#listing-select {
@@ -756,6 +743,7 @@ export class CleanPortfolioTheme extends DDDSuper(HAXCMSLitElementTheme) {
756
743
display: grid;
757
744
gap: 24px;
758
745
width: 100%;
746
+ view-transition-name: location;
759
747
grid-template-columns: repeat(4, 1fr);
760
748
}
761
749
0 commit comments