Skip to content

Commit

Permalink
Update LayersPanel.js (#981)
Browse files Browse the repository at this point in the history
* Update LayersPanel.js

fix the eye icon lost at right layers

* Update LayersPanel.js

---------

Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
  • Loading branch information
w8w8w8 and jfhenon authored Jul 4, 2024
1 parent 5a3f24e commit e81a4f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/editor/panels/LayersPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,14 @@ class LayersPanel {
layerTr.className = (name === currentLayerName) ? 'layer layersel' : 'layer'
const layerVis = document.createElement('td')
layerVis.className = (!drawing.getLayerVisibility(name)) ? 'layerinvis layervis' : 'layervis'

// fix the eye icon lost at right layers
const _eye = document.createElement('img')
_eye.src = './images/eye.svg'
_eye.style.width = '14px'
_eye.style.width = '14px'
layerVis.appendChild(_eye)

const layerName = document.createElement('td')
layerName.className = 'layername'
layerName.textContent = name
Expand Down

0 comments on commit e81a4f8

Please sign in to comment.