Skip to content

Commit

Permalink
refactor(profile): remove outer div for profile-photo-remove-button
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-power committed Jul 8, 2022
1 parent 2a08a60 commit 948254c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 7 additions & 5 deletions components/views/settings/pages/profile/Profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@
class="plus-button"
/>
</div>
<div class="profile-photo-remove-button" v-if="!!src">
<button @click="removeProfileImage">
<span>{{ $t('pages.settings.profile.remove_image') }}</span>
</button>
</div>
<button
v-if="!!src"
class="profile-photo-remove-button"
@click="removeProfileImage"
>
<span>{{ $t('pages.settings.profile.remove_image') }}</span>
</button>
</div>
<div class="column username-column">
<TypographyTitle
Expand Down
16 changes: 7 additions & 9 deletions components/views/settings/pages/profile/Profile.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
}

.profile-photo-column {
display: flex;
flex-direction: column;
align-items: center;
max-width: 100px;
.profile-photo {
position: relative;
Expand All @@ -55,17 +58,12 @@
}

.profile-photo-remove-button {
display: flex;
justify-content: center;
margin-top: @xlight-spacing;
font-size: @mini-text-size;
&:extend(.color-danger);

button {
font-size: @mini-text-size;
&:extend(.color-danger);

&:hover {
opacity: 0.8;
}
&:hover {
opacity: 0.8;
}
}

Expand Down

0 comments on commit 948254c

Please sign in to comment.