Skip to content

Commit 39e7c50

Browse files
committed
feat(contact chat search): make source list an ordered list, highlight on hover
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent d437f9d commit 39e7c50

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/components/ContextChat/ContextChatSearchOutputForm.vue

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
<label class="cc-output__sources__label">
88
{{ outputShape.sources.description }}
99
</label>
10-
<ContextChatSource v-for="(source, i) in sources"
11-
:key="'source-' + i + '-' + source.url"
12-
:source="source" />
10+
<ol>
11+
<li v-for="(source, i) in sources"
12+
:key="'source-' + i + '-' + source.url"
13+
class="cc-output__sources__line">
14+
<ContextChatSource
15+
:source="source" />
16+
</li>
17+
</ol>
1318
</div>
1419
</template>
1520

@@ -53,5 +58,12 @@ export default {
5358
flex-direction: column;
5459
align-items: start;
5560
gap: 8px;
61+
62+
&__line {
63+
border-radius: var(--border-radius-large);
64+
&:hover {
65+
background-color: var(--color-background-hover);
66+
}
67+
}
5668
}
5769
</style>

0 commit comments

Comments
 (0)