Fix canvas connection point z-indexing bug (#107223)
CodeQL checks / Analyze (actions) (push) Has been cancelled Details
CodeQL checks / Analyze (go) (push) Has been cancelled Details
CodeQL checks / Analyze (javascript) (push) Has been cancelled Details

fix(canvas): hoist connect points one level higher in DOM to fix z-index
This commit is contained in:
Jesse David Peterson 2025-07-11 14:12:14 -04:00 committed by GitHub
parent 0555f99ec1
commit e419cb164a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 2 deletions

View File

@ -54,6 +54,7 @@ export class RootElement extends FrameState {
{this.elements.map((v) => (
<Fragment key={v.UID}>{v.render()}</Fragment>
))}
{this.scene.connections.render()}
</div>
);
}

View File

@ -366,7 +366,6 @@ export class Scene {
const sceneDiv = (
<>
{this.connections.render()}
{this.root.render()}
{this.isEditingEnabled && (
<Portal>

View File

@ -137,7 +137,6 @@ const getStyles = (theme: GrafanaTheme2) => ({
cursor: 'cursor',
width: `calc(5px + 2 * ${ANCHOR_PADDING}px)`,
height: `calc(5px + 2 * ${ANCHOR_PADDING}px)`,
zIndex: 100,
}),
highlightElement: css({
backgroundColor: '#00ff00',