refactor card slots
Ticket
+issues
card-slots, the spaces where we insert card content, are handled inconsistently, which leading to problems in formatting and behavior.
As it currently stands, some card views are rendered with no formal slot. When it does appear, the slot itself contains information about the state of the card, which means the slot itself has to be changed or replaced whenever the state is changed.
On first save, many issues, including:
- double-click isn't triggering edit
- inline not being rendered properly
- unwanted horizontal line appearing
- ??
Also:
- arcane problem detailed at end of handle auto-typing when *options uses in+discussion
+solution
Outer tag: <card card-id="number" position="number" home="viewname">
Inner tag: <div class="viewname-view SET-classes">
We'll create an outer slot (the nest?) which does nothing but identify the card (by id, since name can change) and its position. This will not be changed, replaced, or updated unless the context nesting the slot is updated.
Then there will be an inner slot that holds changeable information about the card, including view, type, name, etc. Whenever the card is updated the inner slot will be replaced.
update wrapper CSS for current terminology and maybe more would be good to do at the same time
+example
content view inclusions next to images messed up in edit mode:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.