Skip to content

Commit

Permalink
style(#5): 💄 Added a title above the tools
Browse files Browse the repository at this point in the history
  • Loading branch information
gautegf committed Oct 5, 2025
1 parent 22e2c24 commit 3fd1d98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/MeasurementControl/measurementsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,15 @@ window.initMeasurementsPanel = function initMeasurementsPanel(viewer) {
const toolsHost = document.getElementById('measurement_tools_host')
const existingTools = document.getElementById('tools')
if (toolsHost && existingTools) {
const parentPanel = toolsHost.parentElement
if (parentPanel) {
const toolsDivider = document.createElement('div')
toolsDivider.className = 'divider pv-tools-divider'
const span = document.createElement('span')
span.textContent = 'Tools'
toolsDivider.appendChild(span)
parentPanel.insertBefore(toolsDivider, toolsHost)
}
toolsHost.appendChild(existingTools)
}

Expand Down

0 comments on commit 3fd1d98

Please sign in to comment.