Skip to content

Commit

Permalink
style: Fixed User panel avatar icon when OpenId account
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed May 14, 2024
1 parent e9dc229 commit 5829df7
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
}

#user-picture {
display: block;
display: flex;
width: @user-picture-size;
height: @user-picture-size;
border-radius: 50%;
Expand All @@ -239,7 +239,11 @@
padding: 0px;
}
}
.uk-icon {
color: rgba(255, 255, 255, 0.5);
}
&:hover {
text-decoration: none;
border: 3px solid #333;
}
}
Expand Down
8 changes: 6 additions & 2 deletions lib/Rozier/src/Resources/app/less/responsive/less-768.less
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
top:0;
right:0;
width:60px;
height:@mobile-admin-menu-height;
height: @mobile-admin-menu-height;
background: var(--user-panel-color);
border-radius: 0;
border:0;
Expand All @@ -98,7 +98,7 @@
background: #3a3a3a;
}

img{
img {
position: absolute;
width:38px;
height:38px;
Expand All @@ -107,6 +107,10 @@
border-radius: (@user-picture-size / 2)+5px;
border: 3px solid var(--user-panel-color);
}

.uk-icon {
color: rgba(255, 255, 255, 0.5);
}
}

.uk-icon-button{
Expand Down
24 changes: 19 additions & 5 deletions lib/Rozier/src/Resources/views/panels/user_panel.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,26 @@
{% if app.user and app.user.id %}
<a id="user-picture"
data-uk-tooltip="{animation:true}"
class="user-image"
title="{{ app.user.identifier }}"
href="{{ path('usersEditPage', {'id':app.user.id }) }}"
>
<img width="200"
height="200"
class="uk-thumbnail"
src="{{ app.user.pictureUrl }}"
alt="{{ app.user.identifier }}" />
{% if app.user.pictureUrl and app.user.pictureUrl != '#' %}
<img width="200"
height="200"
class="uk-thumbnail"
src="{{ app.user.pictureUrl }}"
alt="{{ app.user.identifier }}" />
{% else %}
<i class="uk-icon uk-icon-rz-user"></i>
{% endif %}
</a>
{% elseif app.user %}
{% set displayName = app.user.nickname|default(app.user.givenName|default(app.user.name)) %}
{% if app.user.picture %}
<span
id="user-picture"
class="user-image"
title="{{ displayName }}"
data-uk-tooltip="{animation:true}"
>
Expand All @@ -35,6 +41,14 @@
src="{{ app.user.picture }}"
alt="{{ displayName }}" />
</span>
{% else %}
<span
id="user-picture"
title="{{ displayName }}"
class="user-image uk-thumbnail"
data-uk-tooltip="{animation:true}">
<i class="uk-icon uk-icon-rz-user"></i>
</span>
{% endif %}
{% endif %}
<nav class="user-actions">
Expand Down
4 changes: 2 additions & 2 deletions lib/Rozier/src/Resources/views/partials/js-inject.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<script src="{{ asset('js/vendor.72bd4c36693d4d803a4f.js', 'Rozier') }}" defer type="text/javascript"></script>
<script src="{{ asset('js/vendor.7684c7e9756056051651.js', 'Rozier') }}" defer type="text/javascript"></script>

<script src="{{ asset('js/app.72bd4c36693d4d803a4f.js', 'Rozier') }}" defer type="text/javascript"></script>
<script src="{{ asset('js/app.7684c7e9756056051651.js', 'Rozier') }}" defer type="text/javascript"></script>

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

<script src="{{ asset('js/simple.72bd4c36693d4d803a4f.js', 'Rozier') }}" defer type="text/javascript"></script>
<script src="{{ asset('js/simple.7684c7e9756056051651.js', 'Rozier') }}" defer type="text/javascript"></script>

2 changes: 1 addition & 1 deletion lib/Rozier/src/static/css/app.892de7354f4b82eed554.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Rozier/src/static/css/app.892de7354f4b82eed554.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 5829df7

Please sign in to comment.