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
Unknown Object (File)
Thu, Dec 12, 3:21 AM
Unknown Object (File)
Tue, Dec 10, 5:00 PM
Unknown Object (File)
Sat, Dec 7, 5:56 AM
Unknown Object (File)
Nov 26 2024, 8:18 PM
Unknown Object (File)
Nov 20 2024, 6:40 PM
Unknown Object (File)
Nov 19 2024, 8:09 PM
Unknown Object (File)
Nov 16 2024, 3:15 PM
Unknown Object (File)
Nov 11 2024, 8:33 PM
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
Branch
board4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10445
Build 12767: Run Core Tests
Build 12766: arc lint + arc unit

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.