File tree Expand file tree Collapse file tree 1 file changed +19
-22
lines changed
src/frontend/apps/impress/src/features/docs/doc-tree/components Expand file tree Collapse file tree 1 file changed +19
-22
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,7 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
8787 }
8888 } ;
8989
90- useKeyboardActivation (
91- [ 'Enter' , ' ' ] ,
92- isActive && ! menuOpen ,
93- handleActivate ,
94- true ,
95- ) ;
90+ useKeyboardActivation ( [ 'Enter' ] , isActive && ! menuOpen , handleActivate , true ) ;
9691
9792 const docTitle = doc . title || untitledDocument ;
9893 const hasChildren = ( doc . children ?. length || 0 ) > 0 ;
@@ -138,6 +133,9 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
138133 background : var (--c--theme--colors--greyscale-100 );
139134 }
140135 }
136+ .row .preview & {
137+ background-color : inherit;
138+ }
141139 ` }
142140 >
143141 < TreeViewItem { ...props } onClick = { handleActivate } >
@@ -183,23 +181,22 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
183181 ) }
184182 </ Box >
185183 </ BoxButton >
184+ < Box
185+ $direction = "row"
186+ $align = "center"
187+ className = "light-doc-item-actions"
188+ role = "toolbar"
189+ aria-label = { `${ t ( 'Actions for' ) } ${ docTitle } ` }
190+ >
191+ < DocTreeItemActions
192+ doc = { doc }
193+ isOpen = { menuOpen }
194+ onOpenChange = { setMenuOpen }
195+ parentId = { node . data . parentKey }
196+ onCreateSuccess = { afterCreate }
197+ />
198+ </ Box >
186199 </ TreeViewItem >
187-
188- < Box
189- $direction = "row"
190- $align = "center"
191- className = "light-doc-item-actions"
192- role = "toolbar"
193- aria-label = { `${ t ( 'Actions for' ) } ${ docTitle } ` }
194- >
195- < DocTreeItemActions
196- doc = { doc }
197- isOpen = { menuOpen }
198- onOpenChange = { setMenuOpen }
199- parentId = { node . data . parentKey }
200- onCreateSuccess = { afterCreate }
201- />
202- </ Box >
203200 </ Box >
204201 ) ;
205202} ;
You can’t perform that action at this time.
0 commit comments