Skip to content

Commit 0add114

Browse files
authored
ENGCOM-4200: [Backport][CMS] Improving the uploaded images styling view #21110
2 parents 285af5b + 2bfc837 commit 0add114

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
@@ -15,7 +15,7 @@ $_height = $block->getImagesHeight();
1515
<?php if ($block->getFilesCount() > 0): ?>
1616
<?php foreach ($block->getFiles() as $file): ?>
1717
<div data-row="file" class="filecnt" id="<?= $block->escapeHtmlAttr($block->getFileId($file)) ?>">
18-
<p class="nm" style="height:<?= $block->escapeHtmlAttr($_height) ?>px;width:<?= $block->escapeHtmlAttr($_width) ?>px;">
18+
<p class="nm" style="height:<?= $block->escapeHtmlAttr($_height) ?>px;">
1919
<?php if ($block->getFileThumbUrl($file)):?>
2020
<img src="<?= $block->escapeHtmlAttr($block->getFileThumbUrl($file)) ?>" alt="<?= $block->escapeHtmlAttr($block->getFileName($file)) ?>"/>
2121
<?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
@@ -42,6 +42,7 @@
4242
margin: 0 @indent__xs 15px 0;
4343
overflow: hidden;
4444
padding: 3px;
45+
text-overflow: ellipsis;
4546
width: 100px;
4647

4748
&.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

@@ -298,6 +298,7 @@
298298
margin: 0 @indent__xs 15px 0;
299299
overflow: hidden;
300300
padding: 3px;
301+
text-overflow: ellipsis;
301302
width: 100px;
302303

303304
&.selected {
@@ -309,7 +310,7 @@
309310
}
310311
}
311312

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

0 commit comments

Comments
 (0)