← 输入框|github.com|刷新
Skip to content

web: show a dashed outline where dragged cards will land - #36

Merged
yekta merged 1 commit into
masterfrom
feat/transparent-drag-placeholder
Oct 17, 2026
Merged

yekta merged 1 commit into
masterfrom
feat/transparent-drag-placeholder

Conversation

@yekta

@yekta yekta commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

When a project, service or service group card is dragged, its drop spot used to show a copy of the card at 40% opacity. This change replaces that copy with an empty dashed outline, so the drop spot is easier to see and less cluttered.

  • The drag source's children are hidden (data-drag-source:*:invisible). A before: pseudo-element draws a dashed border in the border color at full opacity, inset to match the card.
  • This applies to project cards (project-card.tsx), service cards (service-card.tsx) and service group cards (service-group-card.tsx).
  • Service cards inside a group have smaller rounding, so their outline uses rounded-lg instead of rounded-xl.

While a project, service or service group card is being dragged, its drop spot used to show a faded copy of the card at 40% opacity. Now the card's content is hidden and the spot shows an empty dashed outline in the border color at full opacity. Service cards inside a group use a smaller corner radius on the outline to match their own rounding.
@yekta
yekta merged commit e8d984f into master Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant