Skip to content

Commit c5d1c9c

Browse files
committed
style(yasr): give the Response view a Lucide outline icon
1 parent e0d2752 commit c5d1c9c

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.changeset/response-icon.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@matdata/yasr": patch
3+
---
4+
5+
The Response view now has an outline icon that matches the Table, Geo, Graph, Chart and Explain views, instead of a filled Font Awesome glyph.

‎packages/yasr/src/plugins/response/index.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { turtle } from "codemirror-lang-turtle";
1414
import { javascript } from "@codemirror/legacy-modes/mode/javascript";
1515
import { addClass, removeClass } from "@matdata/yasgui-utils";
1616
import { DeepReadonly } from "ts-essentials";
17+
import { icon } from "../../describe/icons";
1718
import {
1819
extractUriAtOffset,
1920
buildSubjectOfQuery,
@@ -53,9 +54,7 @@ export default class Response implements Plugin<PluginConfig> {
5354
return true;
5455
}
5556
public getIcon() {
56-
const icon = document.createElement("i");
57-
icon.className = "fas fa-align-left";
58-
return icon;
57+
return icon("file-code");
5958
}
6059
download(filename?: string) {
6160
if (!this.yasr.results) return;

0 commit comments

Comments
 (0)