|
|
@ -192,6 +192,16 @@ |
|
|
} |
|
|
} |
|
|
} else if (type === "highlight-setting") { |
|
|
} else if (type === "highlight-setting") { |
|
|
store.actions.settings.highlight(data.setting) |
|
|
store.actions.settings.highlight(data.setting) |
|
|
|
|
|
|
|
|
|
|
|
// Also scroll setting into view |
|
|
|
|
|
const selector = `[data-cy="${data.setting}-prop-control"` |
|
|
|
|
|
const element = document.querySelector(selector)?.parentElement |
|
|
|
|
|
if (element) { |
|
|
|
|
|
element.scrollIntoView({ |
|
|
|
|
|
behavior: "smooth", |
|
|
|
|
|
block: "center", |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
console.warn(`Client sent unknown event type: ${type}`) |
|
|
console.warn(`Client sent unknown event type: ${type}`) |
|
|
} |
|
|
} |
|
|
|