Skip to content

Commit

Permalink
after QA
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Oct 5, 2023
1 parent 57140c0 commit 269d30f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/bundle/Resources/public/scss/_user-name.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
display: inline-flex;

&__thumbnail {
width: calculateRem(20px);
height: calculateRem(20px);
margin-right: calculateRem(8px);
}

Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Resources/public/scss/_user-thumbnail.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.ibexa-user-thumbnail {
&--img {
width: calculateRem(24px);
height: calculateRem(24px);
width: calculateRem(20px);
height: calculateRem(20px);
border-radius: 50%;
}
}
1 change: 1 addition & 0 deletions src/bundle/Resources/public/scss/ui/modules/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
@import 'common/tooltip.popup';
@import 'common/thumbnail';
@import 'common/simple.dropdown';
@import 'common/user.name';
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.c-user-name {
.c-thumbnail__image {
width: calculateRem(20px);
height: calculateRem(20px);
border-radius: 50%;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
}
} only %}
</span>
<span class="ibexa-user-name__text">{{ ibexa_content_name(user) }}</span>
{% if user_path is defined %}
<a href={{ user_path }} class="ibexa-user-name__text">{{ ibexa_content_name(user) }}</a>
{% else %}
<span class="ibexa-user-name__text">{{ ibexa_content_name(user) }}</span>
{% endif %}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Thumbnail = ({ thumbnailData, iconExtraClasses, contentTypeIconPath }) =>
return (
<div className="c-thumbnail">
{renderContentTypeIcon()}
<img src={thumbnailData.resource} />
<img className="c-thumbnail__image" src={thumbnailData.resource} />
</div>
);
};
Expand Down

0 comments on commit 269d30f

Please sign in to comment.