Skip to content

Commit

Permalink
Swap symbols for visibility toggle (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 28, 2024
1 parent 67a9c22 commit 7dbf3f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hub/SourceList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ export default class SourceList {
// Update hide button
let hideButton = item.getElementsByClassName("hide")[0] as HTMLButtonElement;
let hideIcon = hideButton.firstElementChild as HTMLImageElement;
hideIcon.src = "symbols/" + (state.visible ? "eye.slash.svg" : "eye.svg");
hideIcon.src = "symbols/" + (state.visible ? "eye.svg" : "eye.slash.svg");
if (state.visible) {
item.classList.remove("hidden");
} else {
Expand Down
2 changes: 1 addition & 1 deletion www/hub.html
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@
<img src="symbols/exclamationmark.triangle.fill.svg" />
</button>
<button class="hide" tabindex="-1">
<img src="symbols/eye.slash.svg" />
<img src="symbols/eye.svg" />
</button>
<button class="remove" tabindex="-1">
<img src="symbols/xmark.svg" />
Expand Down

0 comments on commit 7dbf3f8

Please sign in to comment.