Modal Cut-off

Phoca Cart - complex e-commerce extension
piranha
Phoca Member
Phoca Member
Posts: 21
Joined: 06 Apr 2021, 01:16

Modal Cut-off

Post by piranha »

How do I make the modal pop-up (When adding a product to shopping cart) wider as the text is being cut-off, thanks. (ver 3.5.6)

** I did not attach a screenshot or url as I do not see a way to hide that information
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modal Cut-off

Post by Jan »

Hi, yes, hard to say without having screenshot, what do you exactly mean, but usually, a popup is made by Bootstrap - so there are two ways to change the size:

- per customization in HTML
- or per CSS (if it is possible to do per CSS, it is recommended)

CSS: It depends on many factors, mostly on used Bootstrap library, on browser window size, etc. etc. So for example this code needs to be customized in own CSS:

Code: Select all

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 600px;
    }
}
Example of Bootstrap modal dialog for screens with min width of 576px.

Jan
If you find Phoca extensions useful, please support the project
piranha
Phoca Member
Phoca Member
Posts: 21
Joined: 06 Apr 2021, 01:16

Re: Modal Cut-off

Post by piranha »

Here is what the problem looks like - Thee CSS you suggested had no affect.

Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modal Cut-off

Post by Jan »

Hi, it looks like the font size is too large. So you can change the font size or set the size of the window to full window width or add some CSS overflow effect. :idea:

Jan
If you find Phoca extensions useful, please support the project
piranha
Phoca Member
Phoca Member
Posts: 21
Joined: 06 Apr 2021, 01:16

Re: Modal Cut-off

Post by piranha »

Do you know where that Modal Window width is controlled?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modal Cut-off

Post by Jan »

Hi, as written previously, this is managed by Bootstrap library, e.g.:

Code: Select all

@media (min-width: 576px)
.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}
So it is controlled in Bootstrap CSS and you can override it by your custom CSS.

Jan
If you find Phoca extensions useful, please support the project
Post Reply