Skip to content

Commit 9ddf042

Browse files
committed
chore: make the sentiment line responsive based on the content
Signed-off-by: Efren Lim <[email protected]>
1 parent 714bff8 commit 9ddf042

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

frontend/app/components/modules/project/components/community/fragments/card-content.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ SPDX-License-Identifier: MIT
88
<div class="flex lg:flex-row flex-col flex-wrap items-start lg:gap-8 gap-4">
99
<div class="flex gap-3 items-stretch flex-1 min-w-0">
1010
<!-- Sentiment Icon -->
11-
<lfx-community-sentiment-icon
12-
:sentiment-label="mention.sentimentLabel"
13-
:hide-bar="mention.body === null || mention.body === ''"
14-
/>
11+
<div class="relative w-5 shrink-0 overflow-hidden">
12+
<lfx-community-sentiment-icon :sentiment-label="mention.sentimentLabel" />
13+
</div>
1514

1615
<!-- Text Content -->
1716
<div class="flex-1 min-w-0 overflow-hidden">

frontend/app/components/modules/project/components/community/fragments/sentiment-icon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright (c) 2025 The Linux Foundation and each contributor.
33
SPDX-License-Identifier: MIT
44
-->
55
<template>
6-
<div class="flex flex-col items-center gap-2 py-1 w-5 shrink-0">
6+
<div class="flex flex-col items-center gap-2 py-1 w-5 shrink-0 absolute top-0 bottom-0">
77
<lfx-icon
88
:name="sentimentIcon"
99
type="regular"

0 commit comments

Comments
 (0)