Fix mobile-specific image overflow and remove !important
- Remove !important from product-main image rules, use specific selectors instead - Add mobile-specific constraints to .product-images container - Add overflow-x auto for mobile product image containers - Ensure images stay within bounds on mobile without affecting tablet/desktop
This commit is contained in:
parent
014f8e7836
commit
ae0e39a638
1 changed files with 13 additions and 4 deletions
|
|
@ -268,10 +268,11 @@ img.product-thumbnail {
|
|||
height: auto;
|
||||
}
|
||||
|
||||
img.product-main {
|
||||
max-width: 100% !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
.product-images img.product-main,
|
||||
div.product-images img.product-main {
|
||||
max-width: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* Prevent content sections from overflowing */
|
||||
|
|
@ -978,6 +979,14 @@ textarea.markup-editor-textarea {
|
|||
/* On mobile, reorder to put purchase section after images */
|
||||
.product-images {
|
||||
order: 1;
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.product-images img.product-main {
|
||||
max-width: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
section.product-right {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue