Skip to content

Commit 2d1b20a

Browse files
authored
ENGCOM-4051: [CMS] Improving the uploaded images styling view #20787
2 parents 04d97b5 + c6ad857 commit 2d1b20a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/code/Magento/Cms/view/adminhtml/templates/browser/content/files.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $_height = $block->getImagesHeight();
2121
data-size="<?= $block->escapeHtmlAttr($file->getSize()) ?>"
2222
data-mime-type="<?= $block->escapeHtmlAttr($file->getMimeType()) ?>"
2323
>
24-
<p class="nm" style="height:<?= $block->escapeHtmlAttr($_height) ?>px;width:<?= $block->escapeHtmlAttr($_width) ?>px;">
24+
<p class="nm" style="height:<?= $block->escapeHtmlAttr($_height) ?>px;">
2525
<?php if ($block->getFileThumbUrl($file)):?>
2626
<img src="<?= $block->escapeHtmlAttr($block->getFileThumbUrl($file)) ?>" alt="<?= $block->escapeHtmlAttr($block->getFileName($file)) ?>"/>
2727
<?php endif; ?>

app/design/adminhtml/Magento/backend/web/css/source/components/_file-insertion.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
margin: 0 @indent__xs 15px 0;
4545
overflow: hidden;
4646
padding: 3px;
47+
text-overflow: ellipsis;
4748
width: 100px;
4849

4950
&.selected {

app/design/adminhtml/Magento/backend/web/css/source/components/_popups.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
}
265265
}
266266

267-
#contents-uploader {
267+
.contents-uploader {
268268
margin: 0 0 @indent__base;
269269
}
270270

@@ -299,6 +299,7 @@
299299
margin: 0 @indent__xs 15px 0;
300300
overflow: hidden;
301301
padding: 3px;
302+
text-overflow: ellipsis;
302303
width: 100px;
303304

304305
&.selected {
@@ -310,7 +311,7 @@
310311
}
311312
}
312313

313-
#contents-uploader {
314+
.contents-uploader {
314315
&:extend(.abs-clearfix all);
315316
}
316317

0 commit comments

Comments
 (0)