Skip to content

Commit 5727f08

Browse files
committed
MAGETWO-96409: [2.3.x] [MAGENTO CLOUD] Unable to add more attributes in size
- Add min width for columns
1 parent 909591d commit 5727f08

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/text.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $stores = $block->getStoresSortedBySortOrder();
2121
<th class="col-draggable"></th>
2222
<th class="col-default"><span><?= $block->escapeHtml(__('Is Default')) ?></span></th>
2323
<?php foreach ($stores as $_store): ?>
24-
<th class="col-swatch col-<%- data.id %>
24+
<th class="col-swatch col-swatch-min-width col-<%- data.id %>
2525
<?php if ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> _required<?php endif; ?>"
2626
colspan="2">
2727
<span><?= $block->escapeHtml($_store->getName()) ?></span>
@@ -75,15 +75,15 @@ $stores = $block->getStoresSortedBySortOrder();
7575
</td>
7676
<?php foreach ($stores as $_store): ?>
7777
<?php $storeId = (int)$_store->getId(); ?>
78-
<td class="col-swatch col-<%- data.id %>">
78+
<td class="col-swatch col-swatch-min-width col-<%- data.id %>">
7979
<input class="input-text
8080
swatch-text-field-<?= /* @noEscape */ $storeId ?>
8181
<?php if ($storeId == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> required-option required-unique<?php endif; ?>"
8282
name="swatchtext[value][<%- data.id %>][<?= /* @noEscape */ $storeId ?>]"
8383
type="text" value="<%- data.swatch<?= /* @noEscape */ $storeId ?> %>"
8484
placeholder="<?= $block->escapeHtml(__("Swatch")) ?>"/>
8585
</td>
86-
<td class="swatch-col-<%- data.id %>">
86+
<td class="col-swatch-min-width swatch-col-<%- data.id %>">
8787
<input name="optiontext[value][<%- data.id %>][<?= /* @noEscape */ $storeId ?>]"
8888
value="<%- data.store<?= /* @noEscape */ $storeId ?> %>"
8989
class="input-text<?php if ($storeId == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> required-option<?php endif; ?>"

app/code/Magento/Swatches/view/adminhtml/web/css/swatches.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@
149149
width: 50px;
150150
}
151151

152+
.col-swatch-min-width {
153+
min-width: 30px;
154+
}
155+
152156
.swatches-visual-col.unavailable:after {
153157
content: '';
154158
position: absolute;

0 commit comments

Comments
 (0)