Skip to content

Commit 159756f

Browse files
authored
Merge pull request #259 from iceljc/features/refine-chat-window
add max length
2 parents 9c5a7da + cb08aa3 commit 159756f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/routes/page/users/+page.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
const duration = 3000;
2424
const firstPage = 1;
2525
const pageSize = 15;
26+
const maxLength = 50;
2627
2728
const initPager = { page: firstPage, size: pageSize };
2829
@@ -204,16 +205,16 @@
204205
<CardBody class="border-bottom">
205206
<Row class="g-3">
206207
<Col lg="3">
207-
<Input bind:value={searchOption.userName} placeholder={'Search user name...'} />
208+
<Input bind:value={searchOption.userName} maxlength={maxLength} placeholder={'Search user name...'} />
208209
</Col>
209210
<Col lg="3">
210-
<Input bind:value={searchOption.externalId} placeholder={'Search external id...'} />
211+
<Input bind:value={searchOption.externalId} maxlength={maxLength} placeholder={'Search external id...'} />
211212
</Col>
212213
<Col lg="3">
213-
<Input bind:value={searchOption.role} placeholder={'Search role...'} />
214+
<Input bind:value={searchOption.role} maxlength={maxLength} placeholder={'Search role...'} />
214215
</Col>
215216
<Col lg="2">
216-
<Input bind:value={searchOption.source} placeholder={'Search source...'} />
217+
<Input bind:value={searchOption.source} maxlength={maxLength} placeholder={'Search source...'} />
217218
</Col>
218219
<Col lg="1">
219220
<Button

0 commit comments

Comments
 (0)