Webform confirmation modal has a minWidth: 600px; in /js/webform.confirmation.modal.js which will case a horizental scroll on small screens.
I can solve this issue for me in CSS but it's better if we can solve it in the module.

Comments

Anas_maw created an issue. See original summary.

jrockowitz’s picture

Using the Bartik theme the confirmation modal is responsive.

What base theme are you using?

Does changing minWidth to maxWidth help?

anas_maw’s picture

I'm using bootstrap theme, I fixed this by adding a CSS to my custom theme with media query for small screens.

jrockowitz’s picture

I am not able to get the confirmation modal to even appear with the Bootstrap theme.

anas_maw’s picture

I just checked this and I figured out that bootstrap theme missing - core/jquery.ui.dialog in their libraries. I added this library to my custom theme and I got this working fine. Maybe because they use bootstrap modal instead of jQuery UI one.
Maybe we should open a separate ticket in the bootstrap project issue queue about this first.

jrockowitz’s picture

StatusFileSize
new362 bytes

The attached patch allows the jquery ui dialog to be used.

I am not sure if this a Bootstrap or Webform specific issue. Someone with more experience with Bootstrap would need to step in a help resolve this issue.

  • jrockowitz committed 715e4b9 on 8.x-5.x
    Issue #3010798 by jrockowitz: Responsive confirmation modal
    
jrockowitz’s picture

Status: Active » Needs work

I committed the patch to fix the immediate issue of no dialog being displayed.

anas_maw’s picture

Status: Needs work » Needs review
StatusFileSize
new365 bytes

Great, now what about to fix responsive issue by adding these CSS lines.

jrockowitz’s picture

Status: Needs review » Fixed
StatusFileSize
new549 bytes

Attached patch moves this solution into the webform_bootstrap.module.

  • jrockowitz committed 24032b5 on 8.x-5.x
    Issue #3010798 by jrockowitz, Anas_maw: Responsive confirmation modal
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

squibb’s picture

Pardon my ignorance, where is this webform_bootstrap module?

jrockowitz’s picture

@squibb The Webform Boostrap module is a sub-module included with the Webform module.

squibb’s picture

@jrockowitz I was almost sure I was doing something stupid. Thanks for your quick reply.