Problem/Motivation

The "..." button renders on the wrong place.

Proposed resolution

Bring this button to the right on the behavior tab row... somehow. At least to the right.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miro_dietiker created an issue. See original summary.

Berdir’s picture

I would think this is a generic issue with paragraph widget on a single-value field.

miro_dietiker’s picture

Priority: Normal » Major
Issue tags: +Needs testing

Then promoting for investigation and maybe move into Paragraphs.

johnchque’s picture

Tested in single-value paragraphs field, the button is displayed correctly, I think the ones that go to the left (the bogus ones) are the ones that apply operations to all elements inside the paragraph field.

We would need tests, maybe even restrict the allowed number of values to one? In the first level. In the paragraphs library item form.

miro_dietiker’s picture

The image above is from the paragraphs library (with its single value field) when it displays in the overlay after pressing edit in the parent widget.

@john did you really test with the drag& drop library installed?

johnchque’s picture

I see now, yes, it is a generic problem with the paragraph widget in single value fields.
Didn't notice at first.

It even gets out of viewport.

johnchque’s picture

Actually only this change is needed IMHO. It works but I've notices some random pattern about the horizontal placement of this drag and drop button, sometimes it is rendered below all elements of the paragraph, sometimes at the top.

johnchque’s picture

Project: Paragraphs Collection » Paragraphs

Forgot it, we need to move this to Paragraphs. :)

Status: Needs review » Needs work

The last submitted patch, 7: the_drag_drop-2933516-7.patch, failed testing. View results

Berdir’s picture

I guess the only question is if we want to add the same logic as we have for the per-paragraph actions, that there is a main button that is always visible.. usually that's edit/collapse all, which doesn't exist here, so maybe drag & drop should be displayed as a normal button.. looks a bit strange to have a standalone ...-thingy IMHO, but lets see what Miro thinks.

johnchque’s picture

+1 for having it always visible.

miro_dietiker’s picture

Note that the Library has this problem as well: #2941011: Library item paragraph field label not visible

So yeah for single value fields where we don't have the Collapse / Expand all, the top level "..." only contains Drag & drop.
It seems to me like with multivalue table header, the button should be on the same line as the field label.

If it's really only a single value field like a "text" field or in flat field lists like the field collection use case, it can be quickly cumbersome to have the "Drag & drop" button taking so much attention.

So i don't know how to define this best. Maybe need to create mock-ups for these situations. Let's readd the label first.

miro_dietiker’s picture

Title: The Drag & drop button is broken in Paragraph Library » The Drag & drop button is broken on single value Paragraph fields
johnchque’s picture

Status: Needs work » Postponed
miro_dietiker’s picture

@john thanks for the issue updates! Please make sure to also connect issues, most importantly postponed references.

Berdir’s picture

Postponed or duplicate? Tested and it works fine with the latest patch in that issue.

johnchque’s picture

Status: Postponed » Closed (duplicate)

Let's close it then. :) We will fix this in the related issue. :)