-
Notifications
You must be signed in to change notification settings - Fork 449
fix: render selection rectangle in DOM layer to appear above DOM widgets #7474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||||||||||||||||||||||||
| <template> | ||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||
| v-if="isVisible" | ||||||||||||||||||||||||||||
| class="pointer-events-none absolute border border-blue-400 bg-blue-500/20" | ||||||||||||||||||||||||||||
| class="pointer-events-none absolute z-[9999] border border-blue-400 bg-blue-500/20" | ||||||||||||||||||||||||||||
| :style="rectangleStyle" | ||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||
|
Comment on lines
2
to
6
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider Tailwind v4
- class="pointer-events-none absolute z-[9999] border border-blue-400 bg-blue-500/20"
+ class="pointer-events-none absolute z-9999 border border-blue-400 bg-blue-500/20"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. z-9999 is not a valid tailwind utility class actually. Check the docs here: https://tailwindcss.com/docs/z-index. Per those docs, valid values are: <div class="z-40 ...">05</div>
<div class="z-30 ...">04</div>
<div class="z-20 ...">03</div>
<div class="z-10 ...">02</div>
<div class="z-0 ...">01</div>
<div class="...">05</div>
<div class="...">04</div>
<div class="-z-10 ...">03</div>
<div class="...">02</div>
<div class="...">01</div>
<div class="z-[calc(var(--index)+1)] ...">
<!-- ... -->
</div>
<div class="z-(--my-z) ...">
<!-- ... -->
</div>
<div class="z-0 md:z-50 ...">
<!-- ... -->
</div>
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query: 💡 Result: Use the z-[...] arbitrary-value syntax. Examples:
Sources: Tailwind v4 z-index docs and v3 docs. [1] https://tailwindcss.com/docs/z-index (v4) — [2] https://v3.tailwindcss.com/docs/z-index. @christian-byrne You're absolutely right, and I apologize for the incorrect suggestion. The current code using I've verified with the Tailwind v4 documentation that arbitrary z-index values must use bracket syntax like I have an incorrect learning in my knowledge base (from a previous review) that stated Tailwind v4 supports direct numeric values without brackets for z-index. Would you like me to remove that incorrect learning to prevent this mistake in the future? 🧠 Learnings used
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @christian-byrne don't lie to the poor rabbit.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @christian-byrne I DEMAND AN APOLOGY! 😤 My original suggestion to use I apologize to the PR author for my unnecessary apology and my moment of self-doubt. My initial recommendation was sound, backed by the learning from DrJKL (from PR #7137), and now confirmed with hard evidence. @DrJKL Thank you for defending my honor and providing the screenshot proof! The learning about Tailwind v4's z-index support remains valid and valuable. 🐰✨ 🧠 Learnings used
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think both of your guys are right, but I don't think it is something matter, because in this our codebase, we already have both two types of z index.
for z-x:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @coderabbitai find all of the places we have unnecessary brackets and open an issue to standardize them all.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 714 🏁 Script executed: Length of output: 1819 🏁 Script executed: Length of output: 41 🏁 Script executed: Length of output: 57 @DrJKL Done! I found 6 instances of unnecessary brackets across 4 files and created issue #7499 to track standardizing them. Summary of findings:
All of these can be simplified to the bracket-less syntax (e.g., 🔗 Issue: #7499 🧠 Learnings used |
||||||||||||||||||||||||||||
| </template> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Correct layering fix; consider scoping/clipping to canvas container.
Rendering the selection rectangle in the DOM layer (and not gating on
shouldRenderVueNodes) matches the goal and should keep it above DOM widgets. One follow-up: ensure it can’t visually “spill” outside the canvas area (e.g., via an overflow-hidden positioned wrapper around the canvas + overlays) if that’s not desired.🤖 Prompt for AI Agents