[WEB-2539] fix: update version history overlay z-index#5694
Conversation
WalkthroughThe changes involve a modification to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
web/core/components/pages/version/root.tsx (1)
43-43: Approved: Z-index update addresses the overlay issue.The change from
z-10toz-20effectively resolves the problem of the editor toolbar appearing over the version history overlay, as described in the PR objectives. This minimal change is focused and appropriate for the issue at hand.For improved maintainability, consider defining z-index values as constants or in a configuration file. This approach would make it easier to manage z-index values across the application and prevent potential stacking conflicts in the future. For example:
// In a constants file (e.g., zIndexConstants.ts) export const Z_INDEX = { EDITOR_TOOLBAR: 10, VERSION_HISTORY_OVERLAY: 20, // ... other z-index values }; // In your component import { Z_INDEX } from '@/constants/zIndexConstants'; // ... className={cn( `absolute inset-0 z-[${Z_INDEX.VERSION_HISTORY_OVERLAY}] size-full bg-custom-background-100 flex overflow-hidden opacity-0 pointer-events-none transition-opacity`, { "opacity-100 pointer-events-auto": isOpen, } )}This approach would make it easier to maintain consistent z-index values across the application and quickly identify or adjust the stacking order when needed.
Problem:
Editor toolbar is appearing over the version history overlay.
Solution:
Updated the
z-indexof the version history overlay.Plane issue: WEB-2539
Summary by CodeRabbit
PageVersionsOverlayby adjusting its stacking order.