Skip to content

Commit 281d3df

Browse files
committed
Improve comment widget spacing and text styles
1 parent 2bc0949 commit 281d3df

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/comment-widget/src/base-comment-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class BaseCommentItem extends LitElement {
120120
}
121121
</div>
122122
123-
<div class="item-content mt-2 content">
123+
<div class="item-content mt-2.5 space-y-2.5 content">
124124
<slot name="pre-content"></slot>${unsafeHTML(sanitizeHtml(this.content))}
125125
</div>
126126

packages/comment-widget/src/comment-editor-skeleton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class CommentEditorSkeleton extends LitElement {
88
class="border rounded-base border-solid border-muted-1"
99
>
1010
<div class="animate-pulse p-4">
11-
<div class="h-4 mt-1 mb-3.5px w-20 bg-muted-1 rounded"></div>
11+
<div class="h-4 mt-1 mb-8.75px w-20 bg-muted-1 rounded"></div>
1212
</div>
1313
<div class="py-2.5 px-3 flex gap-1 m-0 items-center">
1414
${repeat(

packages/comment-widget/src/reply-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class ReplyItem extends LitElement {
159159
slot="pre-content"
160160
@mouseenter=${() => this.handleSetActiveQuoteReply(this.quoteReply)}
161161
@mouseleave=${() => this.handleSetActiveQuoteReply()}
162-
class="quote-badge cursor-pointer inline-flex items-center gap-1 px-2.5 py-2 rounded-base bg-muted-3 text-text-2 hover:-translate-y-0.5 hover:text-text-1 hover:bg-muted-2 transition-all mb-1 text-xs font-medium"
162+
class="quote-badge cursor-pointer inline-flex items-center gap-1 px-2.5 py-2 rounded-base bg-muted-3 text-text-2 hover:-translate-y-0.5 hover:text-text-1 hover:bg-muted-2 transition-all text-xs font-medium"
163163
><i class="i-ic:round-reply"></i><span>${this.quoteReply?.owner.displayName}</span>
164164
</span>
165165
<br slot="pre-content" />`

packages/comment-widget/src/styles/content.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.content {
22
word-wrap: break-word;
3-
@apply text-text-1 text-sm;
3+
@apply text-text-1 text-sm leading-relaxed;
44
}
55

66
.content details,

0 commit comments

Comments
 (0)