Page MenuHomePhabricator

Make all CSS rules for draggable cards/items independent of container classes
ClosedPublic

Authored by epriestley on Feb 2 2016, 1:49 AM.
Tags
None
Referenced Files
F14055731: D15161.diff
Sat, Nov 16, 3:15 PM
F14041683: D15161.diff
Mon, Nov 11, 8:33 PM
F14025555: D15161.diff
Thu, Nov 7, 6:49 PM
F13997585: D15161.diff
Thu, Oct 24, 5:16 AM
F13961039: D15161.id36602.diff
Oct 15 2024, 2:47 AM
Unknown Object (File)
Sep 29 2024, 12:04 PM
Unknown Object (File)
Sep 12 2024, 7:31 AM
Unknown Object (File)
Sep 12 2024, 7:30 AM
Subscribers
None

Details

Summary

Ref T5240. With the new approach, the draggable clones lose their containers, so they don't get affected by rules like .container .item.

Put classes on the cards/items and use .board-item.item and .standard-item.item to apply rules instead.

This didn't turn out too gross, and seems relatively OK / not obviously broken.

Test Plan
  • Dragged cards on a workboard.
  • Dragged items in normal lists (tasks, pinned apps).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Make all CSS rules for draggable cards/items independent of container classes.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
epriestley edited edge metadata.
  • Small fix for Maniphest.
chad edited edge metadata.
chad added inline comments.
webroot/rsrc/css/phui/phui-object-item-list-view.css
377

Should probably move this rule to phui-workcard

This revision is now accepted and ready to land.Feb 2 2016, 2:12 AM
This revision was automatically updated to reflect the committed changes.

one thing I noticed is that phui-workcard doesn't get added after the clone is dropped. If I add it manually it looks fine. I can dig into it tomorrow, everything else looks great.

Other small nits:

  • If there is only one column, I can only drag inside that column. vs anywhere if there are two column.
  • Tooltips for usernames fire when dragging cards around

one thing I noticed is that phui-workcard doesn't get added after the clone is dropped. If I add it manually it looks fine.

Oh, good catch. I'm pretty sure I know what's up.

Other stuff should be pretty easy to fix.

I'll move that rule too, just slipped my mind when I was arc land'ing.