Skip to content

Commit 269d30f

Browse files
committed
after QA
1 parent 57140c0 commit 269d30f

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

src/bundle/Resources/public/scss/_user-name.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
display: inline-flex;
33

44
&__thumbnail {
5+
width: calculateRem(20px);
6+
height: calculateRem(20px);
57
margin-right: calculateRem(8px);
68
}
79

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.ibexa-user-thumbnail {
22
&--img {
3-
width: calculateRem(24px);
4-
height: calculateRem(24px);
3+
width: calculateRem(20px);
4+
height: calculateRem(20px);
55
border-radius: 50%;
66
}
77
}

src/bundle/Resources/public/scss/ui/modules/_common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
@import 'common/tooltip.popup';
33
@import 'common/thumbnail';
44
@import 'common/simple.dropdown';
5+
@import 'common/user.name';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.c-user-name {
2+
.c-thumbnail__image {
3+
width: calculateRem(20px);
4+
height: calculateRem(20px);
5+
border-radius: 50%;
6+
}
7+
}

src/bundle/Resources/views/themes/admin/ui/component/user/user.html.twig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
}
1010
} only %}
1111
</span>
12-
<span class="ibexa-user-name__text">{{ ibexa_content_name(user) }}</span>
12+
{% if user_path is defined %}
13+
<a href={{ user_path }} class="ibexa-user-name__text">{{ ibexa_content_name(user) }}</a>
14+
{% else %}
15+
<span class="ibexa-user-name__text">{{ ibexa_content_name(user) }}</span>
16+
{% endif %}
1317
</div>

src/bundle/ui-dev/src/modules/common/thumbnail/thumbnail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Thumbnail = ({ thumbnailData, iconExtraClasses, contentTypeIconPath }) =>
2727
return (
2828
<div className="c-thumbnail">
2929
{renderContentTypeIcon()}
30-
<img src={thumbnailData.resource} />
30+
<img className="c-thumbnail__image" src={thumbnailData.resource} />
3131
</div>
3232
);
3333
};

0 commit comments

Comments
 (0)