Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
17 Mar 2018 at 02:42 UTC
Updated:
19 Nov 2020 at 17:01 UTC
Jump to comment: Most recent, Most recent file
Multiple value composite elements use tables which get cut off on small devices
Provide mobile-friendly layout for multiple value composite elements.
Provide CSS (copied from Likert element)
Write change record.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 2953816-12.patch | 689 bytes | jrockowitz |
| #11 | 2953816-11.patch | 688 bytes | jrockowitz |
| #11 | Screen Shot 2020-11-19 at 8.06.35 AM.png | 28.16 KB | jrockowitz |
| #10 | Screen Shot 2020-11-19 at 7.58.35 AM.png | 27.25 KB | jrockowitz |
| #5 | 2953816-5.patch | 3.4 KB | jrockowitz |
Comments
Comment #2
jrockowitz commentedComment #3
jrockowitz commentedComment #5
jrockowitz commentedComment #7
jrockowitz commentedComment #9
francescoq commentedSorry to comment in this old issue, but maybe i'm missing something, this old commit completely hide the "add / remove" buttons when in mobile view if I understand correctly, was that the wanted behaviour?
To give my users the possibility to add multiple values of my Custom Composite element, i've to style myself the +/- buttons, not a big problem at all, but i wanted only to ask if i'm missing the point or if that's correct.
Thanks!
Comment #10
jrockowitz commentedYes, it looked awkward to have the handle and buttons visible.
We could explore allowing the handle and buttons to be toggled on for mobile via the UI.
Comment #11
jrockowitz commentedThe attached patch is a very simple compromise that moves the operations to the top right.
If you like this approach, please create a new ticket and we can probably apply this patch to Webform 6.x.
Comment #12
jrockowitz commentedSame solution but using ems instead of pixels.
Comment #13
jrockowitz commented@see #3183478: Display composite/multiple element's handler and operations on mobile
Comment #14
francescoq commentedWow, I just saw the notifications, faster than light! thanks! I'll try the patch and leave a feedback in the other issue