Skip to content

Commit 9128204

Browse files
committed
Refactor comment metadata display in Velt components for improved readability
- Updated CSS for comment metadata to use flexible layout properties for better alignment. - Simplified JSX structure in VeltCommentDialogWf, VeltCommentsSidebarFocusedThreadWf, and VeltInlineCommentsSectionWf by removing redundant class names for cleaner code.
1 parent 698d862 commit 9128204

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

apps/react/comments/dashboard/self-hosting/dashboard-postgres-demo/components/velt/ui-customization/VeltCommentDialogWf.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ const VeltCommentDialogWf = () => {
8383
<div className="oe-comment--metadata">
8484
<MarkRead width={16} height={16} />
8585
<span className="oe-comment--metadata-label">Line:</span>
86-
<span className="oe-comment--metadata-label"><VeltData field="annotation.context.lineItemDescription" /></span>
86+
<span><VeltData field="annotation.context.lineItemDescription" /></span>
8787
<span className="oe-comment--metadata-label">-</span>
88-
<span className="oe-comment--metadata-label"><VeltData field="annotation.context.lineItemCurrency" /></span>
89-
<span className="oe-comment--metadata-label"><VeltData field="annotation.context.lineItemAmount" /></span>
88+
<span><VeltData field="annotation.context.lineItemCurrency" /></span>
89+
<span><VeltData field="annotation.context.lineItemAmount" /></span>
9090
</div>
9191
</VeltIf>
9292
<VeltCommentDialogWireframe.ThreadCard.Message />

apps/react/comments/dashboard/self-hosting/dashboard-postgres-demo/components/velt/ui-customization/VeltCommentsSidebarFocusedThreadWf.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const VeltCommentsSidebarFocusedThreadWf = () => {
3838
<div className="oe-comment--metadata">
3939
<MarkRead width={16} height={16} />
4040
<span className="oe-comment--metadata-label">Line:</span>
41-
<span className="oe-comment--metadata-label"><VeltData field="focusedAnnotation.context.lineItemDescription" /></span>
41+
<span><VeltData field="focusedAnnotation.context.lineItemDescription" /></span>
4242
<span className="oe-comment--metadata-label">-</span>
43-
<span className="oe-comment--metadata-label"><VeltData field="focusedAnnotation.context.lineItemCurrency" /></span>
44-
<span className="oe-comment--metadata-label"><VeltData field="focusedAnnotation.context.lineItemAmount" /></span>
43+
<span><VeltData field="focusedAnnotation.context.lineItemCurrency" /></span>
44+
<span><VeltData field="focusedAnnotation.context.lineItemAmount" /></span>
4545
<div className="oe-metadata-close">
4646
<VeltCommentsSidebarWireframe.FocusedThread.BackButton>
4747
<div className="oe-btn-padding-sm">

apps/react/comments/dashboard/self-hosting/dashboard-postgres-demo/components/velt/ui-customization/VeltInlineCommentsSectionWf.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ const VeltInlineCommentsSectionWf = () => {
2424
<div className="oe-comment--metadata">
2525
<MarkRead width={16} height={16} />
2626
<span className="oe-comment--metadata-label">Line:</span>
27-
<span className="oe-comment--metadata-label"><VeltData field="context.lineItemDescription" /></span>
27+
<span><VeltData field="context.lineItemDescription" /></span>
2828
<span className="oe-comment--metadata-label">-</span>
29-
<span className="oe-comment--metadata-label"><VeltData field="context.lineItemCurrency" /></span>
30-
<span className="oe-comment--metadata-label"><VeltData field="context.lineItemAmount" /></span>
29+
<span><VeltData field="context.lineItemCurrency" /></span>
30+
<span><VeltData field="context.lineItemAmount" /></span>
3131
<div className="oe-metadata-close">
3232
<VeltButtonWireframe id="close-sidebar" type="button">
3333
<div className="oe-btn-padding-sm">

apps/react/comments/dashboard/self-hosting/dashboard-postgres-demo/components/velt/ui-customization/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ app-comment-dialog-toggle-reply-text {
298298

299299
.oe-comment--metadata span {
300300
/* This is the magic combo for ellipsis */
301-
flex: 1;
301+
flex: 0 1 auto;
302302
min-width: 0;
303303
white-space: nowrap;
304304
overflow: hidden;

0 commit comments

Comments
 (0)