remove unused trunc prop

This commit is contained in:
Alina Beck 2020-01-21 17:00:37 +03:00
parent e93332b173
commit 287e9ce484
7 changed files with 5 additions and 10 deletions

View File

@ -38,7 +38,7 @@
<ds-space /> <ds-space />
<client-only> <client-only>
<user-teaser :user="currentUser" :trunc="35" /> <user-teaser :user="currentUser" />
</client-only> </client-only>
<ds-space /> <ds-space />
<ds-input <ds-input

View File

@ -2,7 +2,7 @@
<ds-space :class="{ read: notification.read, notification: true }" margin-bottom="x-small"> <ds-space :class="{ read: notification.read, notification: true }" margin-bottom="x-small">
<client-only> <client-only>
<ds-space margin-bottom="x-small"> <ds-space margin-bottom="x-small">
<user-teaser :user="from.author" :date-time="from.createdAt" :trunc="35" /> <user-teaser :user="from.author" :date-time="from.createdAt" />
</ds-space> </ds-space>
<ds-text class="reason-text-for-test" color="soft"> <ds-text class="reason-text-for-test" color="soft">
{{ $t(`notifications.reason.${notification.reason}`) }} {{ $t(`notifications.reason.${notification.reason}`) }}

View File

@ -18,7 +18,6 @@
<user-teaser <user-teaser
:user="scope.row.from.author" :user="scope.row.from.author"
:date-time="scope.row.from.createdAt" :date-time="scope.row.from.createdAt"
:trunc="35"
:class="{ 'notification-status': scope.row.read }" :class="{ 'notification-status': scope.row.read }"
/> />
</client-only> </client-only>

View File

@ -20,7 +20,7 @@
<!-- Username, Image & Date of Post --> <!-- Username, Image & Date of Post -->
<div class="user-wrapper"> <div class="user-wrapper">
<client-only> <client-only>
<user-teaser :user="post.author" :trunc="35" :date-time="post.createdAt" /> <user-teaser :user="post.author" :date-time="post.createdAt" />
</client-only> </client-only>
<hc-ribbon v-if="isPinned" class="ribbon--pinned" :text="$t('post.pinned')" /> <hc-ribbon v-if="isPinned" class="ribbon--pinned" :text="$t('post.pinned')" />
<hc-ribbon v-else :text="$t('post.name')" /> <hc-ribbon v-else :text="$t('post.name')" />

View File

@ -11,7 +11,6 @@
:user="scope.row.submitter" :user="scope.row.submitter"
:showAvatar="false" :showAvatar="false"
:showPopover="false" :showPopover="false"
:trunc="30"
data-test="filing-user" data-test="filing-user"
/> />
</template> </template>

View File

@ -22,7 +22,6 @@
<user-teaser <user-teaser
:user="report.resource" :user="report.resource"
:showAvatar="false" :showAvatar="false"
:trunc="30"
:showPopover="false" :showPopover="false"
/> />
</client-only> </client-only>
@ -37,7 +36,6 @@
<user-teaser <user-teaser
:user="report.resource.author" :user="report.resource.author"
:showAvatar="false" :showAvatar="false"
:trunc="30"
:showPopover="false" :showPopover="false"
/> />
</client-only> </client-only>
@ -54,7 +52,6 @@
<user-teaser <user-teaser
:user="moderatorOfLatestReview" :user="moderatorOfLatestReview"
:showAvatar="false" :showAvatar="false"
:trunc="30"
:date-time="report.updatedAt" :date-time="report.updatedAt"
:showPopover="false" :showPopover="false"
/> />

View File

@ -99,7 +99,7 @@
<ds-space v-for="follow in uniq(user.following)" :key="follow.id" margin="x-small"> <ds-space v-for="follow in uniq(user.following)" :key="follow.id" margin="x-small">
<!-- TODO: find better solution for rendering errors --> <!-- TODO: find better solution for rendering errors -->
<client-only> <client-only>
<user-teaser :user="follow" :trunc="15" /> <user-teaser :user="follow" />
</client-only> </client-only>
</ds-space> </ds-space>
<ds-space v-if="user.followingCount - user.following.length" margin="small"> <ds-space v-if="user.followingCount - user.following.length" margin="small">
@ -129,7 +129,7 @@
<ds-space v-for="follow in uniq(user.followedBy)" :key="follow.id" margin="x-small"> <ds-space v-for="follow in uniq(user.followedBy)" :key="follow.id" margin="x-small">
<!-- TODO: find better solution for rendering errors --> <!-- TODO: find better solution for rendering errors -->
<client-only> <client-only>
<user-teaser :user="follow" :trunc="15" /> <user-teaser :user="follow" />
</client-only> </client-only>
</ds-space> </ds-space>
<ds-space v-if="user.followedByCount - user.followedBy.length" margin="small"> <ds-space v-if="user.followedByCount - user.followedBy.length" margin="small">