Skip to content

Commit 1f8ecc6

Browse files
committed
chore: style
1 parent 3895cb8 commit 1f8ecc6

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/hooks/useProjectList.module.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
padding: 12px;
6363
}
6464

65+
.orderBy {
66+
min-width: 160px;
67+
height: 48px;
68+
margin: 0 20px;
69+
}
70+
6571
@media screen and (max-width: 4825px) {
6672
.list,.projectType,.typeFilter {
6773
width: 4412px;
@@ -151,4 +157,9 @@
151157
padding: 12px;
152158
margin-top: 15px;
153159
}
160+
161+
.orderBy {
162+
width: 100%;
163+
margin-top: 15px;
164+
}
154165
}

src/hooks/useProjectList.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ export const useProjectList = (props: UseProjectListProps = {}) => {
339339
</div>
340340
<span style={{ flex: 1 }}></span>
341341
<Select
342+
className={styles.orderBy}
342343
value={orderBy}
343344
options={[
344345
{
@@ -373,11 +374,6 @@ export const useProjectList = (props: UseProjectListProps = {}) => {
373374
mutate(res);
374375
}}
375376
disabled={loading}
376-
style={{
377-
minWidth: 160,
378-
height: 48,
379-
margin: '0 20px',
380-
}}
381377
></Select>
382378
<Input
383379
className={styles.search}

0 commit comments

Comments
 (0)