Skip to content

Commit 1628264

Browse files
authored
Merge pull request #5916 from nextcloud-libraries/fix/5898/ncavatar-border-radius
style(NcAvatar): make border-radius consistent
2 parents 9e13fd6 + 8152c9c commit 1628264

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/NcAvatar/NcAvatar.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,9 @@ export default {
765765
min-width: var(--size);
766766
}
767767
}
768-
& > :deep(.button-vue) {
769-
--button-radius: calc(var(--button-size) / 2);
768+
& > :deep(.button-vue),
769+
& > :deep(.action-item .button-vue) {
770+
--button-radius: calc(var(--size) / 2);
770771
}
771772
}
772773
@@ -775,7 +776,7 @@ export default {
775776
height: var(--size);
776777
width: var(--size);
777778
background-color: var(--color-main-background);
778-
border-radius: 50%;
779+
border-radius: calc(var(--size) / 2);
779780
780781
.avatardiv__initials {
781782
position: absolute;
@@ -844,7 +845,7 @@ export default {
844845
845846
.avatar-class-icon {
846847
display: block;
847-
border-radius: 50%;
848+
border-radius: calc(var(--size) / 2);
848849
background-color: var(--color-background-darker);
849850
height: 100%;
850851
}

0 commit comments

Comments
 (0)