Fix drag and drop in codeplug layout creation - #143
Merged
Conversation
The issue was that when the CSV Columns list-group was empty, it had zero height, leaving no visible drop zone for users to drop fields onto. Changes: - Added min-height: 150px to the list-group to ensure a visible drop zone - Added dashed border to visually indicate the drop area - Added visual feedback (blue border, light blue background) when dragging - Border becomes solid when items are present Fixes #142 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added me-2 (margin-right) to the duplicate warning badge so there's visual separation between the badge and the field path text. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Uses flexbox to make the drop zone expand to fill all available space in the card, so users can drop fields anywhere in the card body area rather than targeting a small inner box. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
Fix the broken drag and drop functionality when creating a new codeplug layout. Users could drag fields from "Available Fields" but dropping them on the "CSV Columns" pane had no effect.
Root Cause
When the CSV Columns list-group was empty, it had zero height, leaving no visible drop zone for users to drop fields onto. The
min-height: 200pxwas on the parent container, but the actual drop target (the innerlist-group) had no height.Changes
min-height: 150pxto the list-group to ensure a visible drop zone even when emptyTest plan
Fixes #142
🤖 Generated with Claude Code