Skip to content

Commit

Permalink
Merge pull request #10175 from nextcloud/backport/10170/stable4.0
Browse files Browse the repository at this point in the history
[stable4.0] fix: Center envelope header avatar
  • Loading branch information
GretaD committed Sep 19, 2024
2 parents 2f1bdda + dfb3b03 commit dbd4ee9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/ThreadEnvelope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
:email="envelope.from[0].email"
:display-name="envelope.from[0].label"
:disable-tooltip="true"
:size="40" />
:size="40"
class="envelope__header__avatar-avatar" />
<div v-if="isImportant"
class="app-content-list-item-star icon-important"
:data-starred="isImportant ? 'true' : 'false'"
Expand Down Expand Up @@ -990,6 +991,14 @@ export default {
&__avatar {
position: relative;
&-avatar {
/* The block makes the wrapper div cover the avatar exactly
* (no extra space) and allows center aligning the avatar
* with the rest of the header elements.
*/
display: block;
}
.app-content-list-item-star {
position: absolute;
cursor: pointer;
Expand Down

0 comments on commit dbd4ee9

Please sign in to comment.