Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

perf: improve word-break style for comment content #852

Merged
merged 2 commits into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/contents/comments/components/CommentListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ const subjectRefResult = computed(() => {
:title="comment?.owner?.displayName"
:description="comment?.owner?.email"
></VEntityField>
<VEntityField>
<VEntityField width="60%">
<template #description>
<div class="flex flex-col gap-2">
<div class="text-sm text-gray-900">
<div class="break-all text-sm text-gray-900">
{{ comment?.comment?.spec.content }}
</div>
<div class="flex items-center gap-3 text-xs">
Expand Down
6 changes: 3 additions & 3 deletions src/modules/contents/comments/components/ReplyListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ const isHoveredReply = computed(() => {
:title="reply?.owner.displayName"
:description="reply?.owner.email"
></VEntityField>
<VEntityField>
<VEntityField width="60%">
<template #description>
<div class="flex flex-col gap-2">
<div class="w-96 text-sm text-gray-800">
<p>
<div class="text-sm text-gray-800">
<p class="break-all">
<a
v-if="quoteReply"
class="mr-1 inline-flex flex-row items-center gap-1 rounded bg-gray-200 py-0.5 px-1 text-xs font-medium text-gray-600 hover:text-blue-500 hover:underline"
Expand Down