File tree 4 files changed +34
-15
lines changed 4 files changed +34
-15
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { useEffect, useRef } from 'react';
4
4
import { createRoot } from 'react-dom/client' ;
5
5
import { persistPromise , queryClient } from 'calypso/dashboard/app/query-client' ;
6
6
import { getRouter } from './router' ;
7
- import './style.scss' ;
8
7
9
8
export default function DashboardBackportSiteSettingsRenderer ( ) {
10
9
const rootInstanceRef = useRef < ReturnType < typeof createRoot > | null > ( null ) ;
Original file line number Diff line number Diff line change
1
+ import { Outlet } from '@tanstack/react-router' ;
2
+ import Snackbars from 'calypso/dashboard/app/snackbars' ;
3
+ import './style.scss' ;
4
+
5
+ export default function Root ( ) {
6
+ return (
7
+ < >
8
+ < Outlet />
9
+ < Snackbars />
10
+ </ >
11
+ ) ;
12
+ }
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ import {
10
10
} from '@tanstack/react-router' ;
11
11
import { siteSettingsQuery } from 'calypso/dashboard/app/queries' ;
12
12
import { queryClient } from 'calypso/dashboard/app/query-client' ;
13
+ import Root from './root' ;
13
14
14
- const rootRoute = createRootRoute ( { component : ( ) => < Outlet /> } ) ;
15
+ const rootRoute = createRootRoute ( { component : Root } ) ;
15
16
16
17
const dashboardSiteSettingsCompatibilityRouteRoot = createRoute ( {
17
18
getParentRoute : ( ) => rootRoute ,
@@ -137,6 +138,7 @@ export const getRouter = () => {
137
138
defaultPreload : 'intent' ,
138
139
defaultPreloadStaleTime : 0 ,
139
140
defaultNotFoundComponent : ( ) => null ,
141
+ defaultViewTransition : true ,
140
142
141
143
// Use memory history to compartmentalize TanStack Router's history management.
142
144
// This way, we separate TanStack Router's history implementation from the browser history used by page.js.
Original file line number Diff line number Diff line change 1
1
@import ' calypso/dashboard/app-dotcom/style.scss' ;
2
2
3
- .dashboard-backport-site-settings-root .dashboard-page-layout {
4
- align-self : center ;
5
- margin : 0 ;
6
- padding : 0 ;
3
+ .dashboard-backport-site-settings-root {
4
+ .dashboard-page-layout {
5
+ align-self : center ;
6
+ margin : 0 ;
7
+ padding : 0 ;
7
8
8
- h1 {
9
- font-family : var ( --dashboard-h1__font-family );
10
- font-weight : var ( --dashboard-h1__font-weight ) !important ;
9
+ h1 {
10
+ font-family : var ( --dashboard-h1__font-family );
11
+ font-weight : var ( --dashboard-h1__font-weight ) !important ;
12
+ }
13
+
14
+ h2 {
15
+ font-size : 1.25rem ;
16
+ font-weight : 500 ;
17
+ line-height : 1.5 ;
18
+ margin-bottom : 0 ;
19
+ }
11
20
}
12
21
13
- h2 {
14
- font-size : 1.25rem ;
15
- font-weight : 500 ;
16
- line-height : 1.5 ;
17
- margin-bottom : 0 ;
22
+ .site-preview-pane :has ( & .dashboard-snackbars ) {
23
+ z-index : 176 ;
18
24
}
19
- }
25
+ }
You can’t perform that action at this time.
0 commit comments