Skip to content

Commit

Permalink
chore: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Sep 8, 2024
1 parent 588dba7 commit d99b38e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/Resources/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,10 @@ export default class Resources extends Tool {
const imageState = getState('image', imageData.length)
let imageDataHtml = '<li>Empty</li>'
if (!isEmpty(imageData)) {
// prettier-ignore
imageDataHtml = map(imageData, (image) => {
return `<li class="${c('image')}">
<img src="${escape(image)}" data-exclude="true" class="${c(
'img-link'
)}"/>
<img src="${escape(image)}" data-exclude="true" class="${c('img-link')}"/>
</li>`
}).join('')
}
Expand Down
11 changes: 9 additions & 2 deletions src/Resources/Resources.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,19 @@
font-size: $font-size-s;
display: flex;
flex-wrap: wrap;
padding: $padding !important;
@include clear-float();
padding-left: $padding;
padding-top: $padding;
&::after {
content: '';
flex-grow: 1000;
}
li {
flex-grow: 1;
cursor: pointer;
overflow-y: hidden;
margin-right: $padding;
margin-bottom: $padding;
border: 1px solid var(--border);
&.image {
height: 100px;
font-size: 0;
Expand Down

0 comments on commit d99b38e

Please sign in to comment.