Skip to content

Commit

Permalink
ENGCOM-4200: [Backport][CMS] Improving the uploaded images styling view
Browse files Browse the repository at this point in the history
#21110

 - Merge Pull Request #21110 from eduard13/magento2:2.2-develop-20787-bp
 - Merged commits:
   1. 99106e1
  • Loading branch information
magento-engcom-team committed Feb 11, 2019
2 parents 285af5b + 99106e1 commit 2bfc837
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $_height = $block->getImagesHeight();
<?php if ($block->getFilesCount() > 0): ?>
<?php foreach ($block->getFiles() as $file): ?>
<div data-row="file" class="filecnt" id="<?= $block->escapeHtmlAttr($block->getFileId($file)) ?>">
<p class="nm" style="height:<?= $block->escapeHtmlAttr($_height) ?>px;width:<?= $block->escapeHtmlAttr($_width) ?>px;">
<p class="nm" style="height:<?= $block->escapeHtmlAttr($_height) ?>px;">
<?php if ($block->getFileThumbUrl($file)):?>
<img src="<?= $block->escapeHtmlAttr($block->getFileThumbUrl($file)) ?>" alt="<?= $block->escapeHtmlAttr($block->getFileName($file)) ?>"/>
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
margin: 0 @indent__xs 15px 0;
overflow: hidden;
padding: 3px;
text-overflow: ellipsis;
width: 100px;

&.selected {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
}
}

#contents-uploader {
.contents-uploader {
margin: 0 0 @indent__base;
}

Expand Down Expand Up @@ -298,6 +298,7 @@
margin: 0 @indent__xs 15px 0;
overflow: hidden;
padding: 3px;
text-overflow: ellipsis;
width: 100px;

&.selected {
Expand All @@ -309,7 +310,7 @@
}
}

#contents-uploader {
.contents-uploader {
&:extend(.abs-clearfix all);
}

Expand Down

0 comments on commit 2bfc837

Please sign in to comment.