Skip to content

Commit

Permalink
feat: limit max height of profile note
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Dec 30, 2022
1 parent d0b8c9b commit b2153fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/account/AccountBigCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defineOptions({
</div>
</div>
<!-- Note -->
<div v-if="account.note">
<div v-if="account.note" max-h-100 overflow-y-auto>
<ContentRich
:content="account.note" :emojis="account.emojis"
line-clamp-2
Expand Down
2 changes: 1 addition & 1 deletion components/account/AccountHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const isSelf = $computed(() => currentUser.value?.account.id === account.id)
</button> -->
</div>
</div>
<div v-if="account.note">
<div v-if="account.note" max-h-100 overflow-y-auto>
<ContentRich text-4 text-base :content="account.note" :emojis="account.emojis" />
</div>
<div v-if="namedFields.length" flex="~ col wrap gap1">
Expand Down
4 changes: 3 additions & 1 deletion components/account/AccountHoverCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const relationship = $(useRelationship(account))
</NuxtLink>
<AccountFollowButton text-sm :account="account" :relationship="relationship" />
</div>
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
<div v-if="account.note" max-h-100 overflow-y-auto>
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
</div>
<AccountPostsFollowers text-sm :account="account" />
</div>
</template>

0 comments on commit b2153fa

Please sign in to comment.