Skip to content

Commit a7e07f4

Browse files
author
Evgeniy Kolesov
committed
MAGETWO-45042: "Compare Products" Storefront page has its layout broken if >6 Products are added
1 parent f44c65d commit a7e07f4

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/_module.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,8 @@
604604

605605
.table-wrapper.comparison {
606606
clear: both;
607+
max-width: 100%;
608+
overflow-x: auto;
607609
}
608610

609611
.table-comparison {

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/_module.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,8 @@ body.catalog-product-compare-index {
679679

680680
.table-wrapper.comparison {
681681
clear: both;
682+
max-width: 100%;
683+
overflow-x: auto;
682684
.table-comparison > tbody > tr{
683685
> th,
684686
> td {

lib/web/extjs/resources/css/ytheme-magento.css

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Ext JS Library 1.0 Beta 2
33
* Copyright(c) 2006-2007, Ext JS, LLC.
44
* licensing@extjs.com
5-
*
5+
*
66
* http://www.extjs.com/license
77
*/
88

@@ -31,8 +31,8 @@
3131
border:1px solid #ccc;
3232
}
3333

34-
/*
35-
Tree
34+
/*
35+
Tree
3636
*/
3737
.x-tree-node { font-weight:normal; font-size:12px; list-style-type:none;}
3838
.x-tree-node-collapsed .x-tree-node-icon{
@@ -134,7 +134,7 @@
134134
.x-grid-viewport { /*font:11px verdana, helvetica, sans-serif;*/ }
135135
.x-grid-header{
136136
background:none;
137-
background:#e4ddc5;
137+
background:#e4ddc5;
138138
overflow:hidden;
139139
position:relative;
140140
cursor:default;
@@ -157,15 +157,15 @@
157157
.x-grid-split {
158158
top:1px;
159159
width:6px;
160-
height:22px;
160+
height:22px;
161161
background:url(../images/magento/grid/grid-split.gif) no-repeat 2px 0;
162162
}
163163

164164
.x-grid-col {
165165
border-right: 1px solid #d7d7d7;
166166
border-bottom: 1px solid #d7d7d7;
167167
}
168-
.x-grid-hd-row td, .x-grid-row td { outline:none; ./* font:11px verdana, helvetica, sans-serif; */ }
168+
.x-grid-hd-row td, .x-grid-row td { outline:none; /* font:11px verdana, helvetica, sans-serif; */ }
169169
.x-grid-hd-row td { font-weight:bold; }
170170
.x-grid-row { background:#f4f1e7; }
171171
.x-grid-row-alt { background:#fbfaf7; }
@@ -216,7 +216,7 @@
216216
}
217217

218218
/**
219-
* Basic-Dialog
219+
* Basic-Dialog
220220
*/
221221
.x-dlg-proxy {
222222
background-image: url(../images/gray/layout/gradient-bg.gif);
@@ -252,8 +252,8 @@
252252
border:1px solid #b3b6b0;
253253
border-bottom:0 none;
254254
}
255-
.x-layout-panel-center, .x-layout-panel-east, .x-layout-panel-south, .x-layout-panel-west {
256-
border:1px solid #c2b483;
255+
.x-layout-panel-center, .x-layout-panel-east, .x-layout-panel-south, .x-layout-panel-west {
256+
border:1px solid #c2b483;
257257
border-top:0;
258258
}
259259

@@ -301,15 +301,15 @@
301301
border:0 none;
302302
}
303303

304-
/**
304+
/**
305305
* Tabs
306306
*/
307307
.x-tabs-wrap {
308308
border:none;
309309
}
310310
.x-tabs-strip td { padding-left:6px; }
311311
.x-tabs-strip .x-tabs-inner { padding:5px 15px 6px 15px;}
312-
.x-tabs-strip .x-tabs-text {
312+
.x-tabs-strip .x-tabs-text {
313313
color:#4a8d94;
314314
/* font:bold 11px verdana, helvetica, sans-serif; */
315315
}
@@ -424,9 +424,9 @@
424424
color:#dc4509;
425425
font-size:12px;
426426
font-weight:bold;
427-
line-height:1em;
427+
line-height:1em;
428428
}
429-
.x-layout-panel-hd-text, .x-layout-panel-hd-text strong {
429+
.x-layout-panel-hd-text, .x-layout-panel-hd-text strong {
430430
/* font:bold 12px verdana, helvetica, sans-serif; */ }
431431

432432
/* section specific header icons */
@@ -526,7 +526,7 @@
526526
}
527527

528528
/** Toolbar */
529-
.x-toolbar {
529+
.x-toolbar {
530530
background:url(../images/magento/toolbar/toolbar-bg.gif) repeat-x #dbeff3;
531531
border:none;
532532
border-top:1px solid #b3d6dc;
@@ -566,13 +566,13 @@
566566
}
567567

568568
/* For top menu only*/
569-
.left-menu-toolbar .x-toolbar, .right-menu-toolbar .x-toolbar {
569+
.left-menu-toolbar .x-toolbar, .right-menu-toolbar .x-toolbar {
570570
border:0 none;
571571
background:#2E4D53;
572572
padding:5px 3px 0 3px;
573573
color:#fbfaf7;
574574
}
575-
575+
576576
.left-menu-toolbar .x-toolbar td { padding:0 2px; background:none; }
577577
.left-menu-toolbar .x-btn { border-bottom:5px solid #2E4D53;}
578578
.left-menu-toolbar .x-btn-over { border-bottom:5px solid #dc4509;}

0 commit comments

Comments
 (0)