Skip to content

Commit d92082d

Browse files
committed
fix: icon was not shown
1 parent a0a83d8 commit d92082d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/GraphPlugin.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,22 @@ class GraphPlugin {
206206
* @returns {Element} Icon element
207207
*/
208208
getIcon() {
209-
const icon = document.createElement('span');
210-
icon.className = 'fas fa-project-diagram';
209+
const icon = document.createElement('div');
211210
icon.setAttribute('aria-label', 'Graph visualization');
211+
icon.style.display = 'inline-flex';
212+
icon.style.alignItems = 'center';
213+
icon.style.justifyContent = 'center';
214+
215+
// Create SVG icon for graph visualization
216+
icon.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
217+
<circle cx="3" cy="3" r="2" />
218+
<circle cx="13" cy="3" r="2" />
219+
<circle cx="8" cy="13" r="2" />
220+
<line x1="4.5" y1="4" x2="7" y2="11.5" stroke="currentColor" stroke-width="1.5" />
221+
<line x1="11.5" y1="4" x2="9" y2="11.5" stroke="currentColor" stroke-width="1.5" />
222+
<line x1="5" y1="3" x2="11" y2="3" stroke="currentColor" stroke-width="1.5" />
223+
</svg>`;
224+
212225
return icon;
213226
}
214227

0 commit comments

Comments
 (0)