Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable4.0] fix: Center envelope header avatar #10175

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading