ENG-2328 Fix relation type menu styling on the Obsidian canvas - #1498
Closed
trangdoan982 wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Entire-Checkpoint: 01M3Q221WD283MVR5HCWXXM2NV
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Member
Author
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://entire.io/gh/DiscourseGraphs/discourse-graph/trails/42
Reviewer brief
z-[301]inapps/obsidian/src/components/canvas/overlays/RelationTypeDropdown.tsx..tlui-layout(z 300), which comes later in the DOM, so a tie loses.calc(var(--layer-panels) + 1). If that variable isn't defined where the menu renders, the z-index becomes invalid and the bug comes back without any error.The diagram compares the failing path before and after the change:
flowchart LR subgraph Before A1["Drag Evidence to Claim"] --> B1["Menu root: z-30<br/>-translate-x/y-1/2 (inert, no preflight)"] B1 --> C1["Style panel (z 300) covers + and flyout"] B1 --> D1["Menu top-left sits at arrow midpoint"] end subgraph After A2["Drag Evidence to Claim"] --> B2["Menu root: z-[301]<br/>[transform:translate(-50%,-50%)]"] B2 --> C2["Menu above style panel, below tldraw menus (400)"] B2 --> D2["Menu centred on arrow midpoint"] endVerification
These scenarios ran in the live Obsidian app over CDP, on the
dgDevVaultfixture canvas with real mouse and key input. In scenario 1, putting the oldz-30back in place brings the bug back, which shows the check catches it.pnpm ci:validatepassed, with 0 cached tasks.Loom video
pending
Scope check
$scope-checkagainst the ENG ticket and final diff.Done When: NoneStandards check
$dg-pr-adherence-checkagainst the final diff and PR metadata.No outstanding findings. It raised a possible inert
shadow-lgon the menu, but the running app shows it renders (rgba(0,0,0,0.1) 0px 10px 15px -3px …).Local delegated full review
$dg-delegated-full-reviewwhen no other full-review workflow is available.No defects. One optional suggestion was to use
calc(var(--layer-panels) + 1). I kept the literal for the reason given under Review focus.🤖 Generated with Claude Code