Skip to content

Commit

Permalink
Use material design icon for group avatar
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Sep 3, 2021
1 parent d1220bf commit e90767d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/AppNavigation/CalendarSharee.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<AppNavigationItem
:title="sharee.displayName">
<template #icon>
<div v-if="sharee.isGroup" class="avatar icon-group" />
<AccountMultiple
v-if="sharee.isGroup"
:size="20"
decorative
class="avatar" />
<div v-else-if="sharee.isCircle" class="avatar icon-circle" />
<Avatar v-else
:user="sharee.id"
Expand Down Expand Up @@ -65,6 +69,7 @@ import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox'
import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem'
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
import AccountMultiple from 'vue-material-design-icons/AccountMultiple.vue'
import Delete from 'vue-material-design-icons/Delete.vue'
export default {
Expand All @@ -74,6 +79,7 @@ export default {
ActionCheckbox,
AppNavigationItem,
Avatar,
AccountMultiple,
Delete,
},
props: {
Expand Down Expand Up @@ -139,3 +145,12 @@ export default {
},
}
</script>

<style lang="scss" scoped>
.app-navigation-entry .avatar {
width: 32px;
height: 32px;
background-color: var(--color-border-dark);
background-size: 16px;
}
</style>

0 comments on commit e90767d

Please sign in to comment.