Skip to content

Commit

Permalink
Fixed alignment of our custom icon.
Browse files Browse the repository at this point in the history
Refs #156
  • Loading branch information
The4thLaw committed Mar 15, 2024
1 parent 2a00fa8 commit 9b578d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/demyo-vue-frontend/src/components/LetterIcon.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<!-- Inspired from vue-letter-avatar but with a customizable color -->
<svg
class="c-LetterIcon"
:style="'width: 24px; height: 24px; border-radius: 100%; background: '
+ actualColor + ' none repeat scroll 0% 0%;'"
>
Expand Down Expand Up @@ -42,3 +43,10 @@ export default {
}
</script>

<style type="css">
.v-list-item__prepend > .c-LetterIcon ~ .v-list-item__spacer {
/* Same as other Vuetify rules */
width: 32px;
}
</style>

0 comments on commit 9b578d4

Please sign in to comment.