Skip to content

Commit

Permalink
Merge pull request #1762 from nextcloud/fix/noid/share-avatar
Browse files Browse the repository at this point in the history
Use material design icon for group avatar
  • Loading branch information
raimund-schluessler authored Sep 3, 2021
2 parents 9202a30 + e90767d commit bca1985
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 bca1985

Please sign in to comment.