Open
Conversation
XYQuadrat
reviewed
Mar 20, 2026
Comment on lines
+305
to
+367
|
|
||
| <style> | ||
| .drop-target { | ||
| position: relative; | ||
| width: 4px; | ||
| min-width: 4px; | ||
| height: 64px; | ||
| border: 2px dashed transparent; | ||
| background-color: transparent; | ||
| transition: | ||
| width 0.2s ease, | ||
| background-color 0.2s ease, | ||
| border-color 0.2s ease; | ||
| flex-shrink: 0; | ||
|
|
||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .drop-target.is-dragging::after { | ||
| content: ''; | ||
| position: absolute; | ||
| top: 0; | ||
| bottom: 0; | ||
| left: 50%; | ||
| transform: translateX(-50%); | ||
| width: 60px; | ||
| height: 100%; | ||
| z-index: 20; | ||
| } | ||
|
|
||
| .drop-target.is-dragging.drop-hover::after { | ||
| width: 120px; | ||
| } | ||
|
|
||
| .drop-hover { | ||
| width: 64px; | ||
| background-color: rgba(74, 222, 128, 0.1); | ||
| border-color: #4ade80; | ||
| } | ||
|
|
||
| .full-drop-target { | ||
| width: 100%; | ||
| height: 100%; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: flex-start; | ||
| border: 2px dashed #ccc; | ||
| transition: border-color 0.2s; | ||
| padding-left: 4px; | ||
| } | ||
|
|
||
| .full-drop-target:hover { | ||
| border-color: #4ade80; | ||
| } | ||
|
|
||
| .drop-expand { | ||
| flex-grow: 1; | ||
| justify-content: flex-start; | ||
| padding-left: 4px; | ||
| } | ||
| </style> No newline at end of file |
Owner
There was a problem hiding this comment.
Some of this could probably be done with Tailwind classes instead.
| ondrop={() => handleDrop('uploaded', uploadedImages.length)} | ||
| role="listitem" | ||
| > | ||
| {#if activeDropTarget?.tier === 'uploaded' && activeDropTarget?.index === uploadedImages.length && draggedImage && (draggedFrom !== 'uploaded' || (draggedIndex !== uploadedImages.length && draggedIndex !== uploadedImages.length - 1))} |
Owner
There was a problem hiding this comment.
Can this condition be a little bit cleaner, maybe by moving it into a function or something?
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.
No description provided.