Skip to content

Commit 2d5d057

Browse files
author
Jicheng Lu
committed
Merge branch 'main' of https://github.com/SciSharp/BotSharp-UI into features/add-stream-chat
2 parents 23a2510 + 8425470 commit 2d5d057

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/lib/common/Select.svelte

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
<!-- svelte-ignore a11y-click-events-have-key-events -->
403403
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
404404
<li
405-
class="option-item clickable"
405+
class="option-item clickable justify-content-center"
406406
on:click|preventDefault|stopPropagation={() => {
407407
clearSelection();
408408
}}
@@ -422,12 +422,18 @@
422422
}}
423423
>
424424
<div class="line-align-center select-box">
425-
<Input
426-
type="checkbox"
427-
style="pointer-events: none;"
428-
checked={option.checked}
429-
readonly
430-
/>
425+
{#if multiSelect}
426+
<Input
427+
type="checkbox"
428+
style="pointer-events: none;"
429+
checked={option.checked}
430+
readonly
431+
/>
432+
{:else if option.checked}
433+
<i class="bx bx-check text-primary" />
434+
{:else}
435+
{' '}
436+
{/if}
431437
</div>
432438
<div class="line-align-center select-name">
433439
{option.label}

0 commit comments

Comments
 (0)