fix(playground): initialize tree nodes with a 'plain' class

This commit is contained in:
Brian Schwind 2025-06-15 18:45:55 +09:00 committed by GitHub
parent 4c51f27b0a
commit f475182c7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,10 +292,10 @@ window.initializePlayground = async (opts) => {
const nodeClass =
displayName === 'ERROR' || displayName.startsWith('MISSING')
? 'node-link error'
? 'node-link error plain'
: cursor.nodeIsNamed
? 'node-link named'
: 'node-link anonymous';
? 'node-link named plain'
: 'node-link anonymous plain';
row = `<div class="tree-row">${" ".repeat(indentLevel)}${fieldName}` +
`<a class='${nodeClass}' href="#" data-id=${id} ` +