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
F13094401: D15161.diff
Thu, Apr 25, 7:16 AM
F13089265: D15161.diff
Thu, Apr 25, 1:43 AM
Unknown Object (File)
Fri, Apr 19, 4:10 PM
Unknown Object (File)
Thu, Apr 11, 9:58 AM
Unknown Object (File)
Sat, Apr 6, 11:52 PM
Unknown Object (File)
Tue, Apr 2, 4:59 PM
Unknown Object (File)
Mar 4 2024, 6:02 PM
Unknown Object (File)
Feb 13 2024, 2:26 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.