Skip to content

Commit c78893a

Browse files
author
Jicheng Lu
committed
refine state search style
1 parent 4075d0b commit c78893a

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

src/routes/page/conversation/+page.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,12 @@
374374
</div>
375375
</CardBody>
376376
{#if showStateSearch}
377-
<CardBody class="border-bottom" style="display: flex; justify-content: flex-end;">
378-
<StateSearch bind:states={states} onSearch={q => handleStateSearch(q)}/>
377+
<CardBody class="border-bottom">
378+
<Row class="g-3 justify-content-end">
379+
<Col lg="6">
380+
<StateSearch bind:states={states} onSearch={q => handleStateSearch(q)}/>
381+
</Col>
382+
</Row>
379383
</CardBody>
380384
{/if}
381385
<CardBody class="border-bottom">

src/routes/page/conversation/state-search.svelte

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
>
3737
{#each states as state, idx}
3838
<div class="state-search-item">
39-
<div>
39+
<div style="flex: 1;">
4040
<RemoteSearchInput
4141
bind:value={state.key}
4242
maxLength={maxLength}
4343
onSearch={e => onSearch(e)}
4444
placeholder="Search States"
4545
/>
4646
</div>
47-
<div>
47+
<div style="flex: 1;">
4848
<Input
4949
type="text"
5050
bind:value={state.value}
@@ -67,15 +67,16 @@
6767
</div>
6868
{/each}
6969
{#if states.length < limit}
70-
<div>
71-
<Button
72-
color="link"
73-
style="padding-left: 0px;"
74-
on:click={() => addState()}
75-
>
76-
Add +
77-
</Button>
78-
</div>
70+
<div class="d-flex justify-content-end">
71+
<Button
72+
color="link"
73+
style="padding-left: 0px;"
74+
on:click={() => addState()}
75+
>
76+
Add +
77+
</Button>
78+
<div style="flex: 0 0 13px;"></div>
79+
</div>
7980
{/if}
8081
</div>
8182

0 commit comments

Comments
 (0)