Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gautegf committed Oct 23, 2025
1 parent 0b98a45 commit 70256be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/AnnotationControl/annotationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ export function initAnnotationsPanel(viewer) {
if (uuid) startInlineEditForUUID(uuid)
})


// triangular toggle (collapsed/open)
const toggle = document.createElement('span')
toggle.className = 'toggle-triangle'
Expand Down Expand Up @@ -446,8 +445,8 @@ export function initAnnotationsPanel(viewer) {
// Append elements into header: toggle, label, then controls (jump/delete)
const controls = document.createElement('div')
controls.className = 'controls'
controls.appendChild(editBtn)
controls.appendChild(jumpBtn)
controls.appendChild(editBtn)
controls.appendChild(jumpBtn)
controls.appendChild(delBtn)

header.appendChild(toggle)
Expand Down Expand Up @@ -525,7 +524,9 @@ export function initAnnotationsPanel(viewer) {
innerDescBtn.textContent = '✎'
innerDescBtn.addEventListener('click', (ev) => {
ev.stopPropagation()
try { row.classList.add('open') } catch (e) {}
try {
row.classList.add('open')
} catch (e) {}
const u = desc.dataset.uuid
if (u) startInlineDescriptionEditForUUID(u)
})
Expand Down

0 comments on commit 70256be

Please sign in to comment.