File tree Expand file tree Collapse file tree
packages/react/src/modules/guide/components/Toolbar/V2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import "../styles.css";
1111
1212import { detectToolbarParam } from "./helpers" ;
1313
14- const useGuideClientViewer = ( ) => {
14+ const useInspectGuideClientStore = ( ) => {
1515 const { client } = useGuideContext ( ) ;
1616
1717 const snapshot = useStore ( client . store , ( state ) => {
@@ -42,8 +42,7 @@ export const V2 = () => {
4242 return client . unsetDebug ( ) ;
4343 } , [ isVisible , client ] ) ;
4444
45- const data = useGuideClientViewer ( ) ;
46-
45+ const data = useInspectGuideClientStore ( ) ;
4746 if ( ! data ) {
4847 return null ;
4948 }
@@ -53,33 +52,30 @@ export const V2 = () => {
5352 position = "fixed"
5453 top = "4"
5554 right = "4"
56- data-tgph-appearance = "dark"
57- style = { { zIndex : MAX_Z_INDEX } }
55+ style = { {
56+ zIndex : MAX_Z_INDEX ,
57+ } }
5858 >
5959 { isCollapsed ? (
6060 < KnockButton onClick = { ( ) => setIsCollapsed ( false ) } />
6161 ) : (
6262 < Stack
6363 direction = "column"
6464 backgroundColor = "surface-2"
65- gap = "2"
66- align = "center"
67- shadow = "3"
65+ shadow = "2"
6866 rounded = "3"
69- py = "2"
70- px = "3"
71- style = { {
72- width : "500px" ,
73- } }
67+ border = "px"
68+ overflow = "hidden"
69+ style = { { width : "400px" } }
7470 >
7571 < Stack
7672 w = "full"
77- gap = "2"
78- align = "center"
73+ p = "2"
7974 justify = "space-between"
8075 direction = "row"
76+ style = { { boxSizing : "border-box" } }
8177 >
82- < Box style = { { width : "240px " } } >
78+ < Box style = { { width : "220px " } } >
8379 < Text as = "div" size = "1" weight = "medium" w = "full" maxWidth = "40" >
8480 Toolbar v2 placeholder
8581 </ Text >
You can’t perform that action at this time.
0 commit comments