Skip to content

Commit

Permalink
fix: Center envelope header avatar
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst authored and backportbot[bot] committed Sep 18, 2024
1 parent 768cf1c commit dfb3b03
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 dfb3b03

Please sign in to comment.