File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
apps/obsidian/src/components Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55 Notice ,
66 FrontMatterCache ,
77 setIcon ,
8+ setTooltip ,
89} from "obsidian" ;
910import { createRoot , Root } from "react-dom/client" ;
1011import DiscourseGraphPlugin from "~/index" ;
@@ -157,12 +158,14 @@ const DiscourseContext = ({ activeFile }: DiscourseContextProps) => {
157158 ) }
158159 { nodeType . name || "Unnamed Node Type" }
159160 < button
161+ ref = { ( el ) => {
162+ if ( el )
163+ setTooltip ( el , `Create Base view for ${ nodeType . name } nodes` ) ;
164+ } }
160165 onClick = { ( ) => {
161166 void createBaseForNodeType ( plugin , nodeType ) ;
162167 } }
163168 className = "clickable-icon ml-1"
164- title = { `Create Base view for ${ nodeType . name } ` }
165- aria-label = { `Create Base view for ${ nodeType . name } ` }
166169 >
167170 < div
168171 ref = { ( el ) => ( el && setIcon ( el , "layout-list" ) ) || undefined }
You can’t perform that action at this time.
0 commit comments