Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e476652

Browse files
author
noah
committedMar 13, 2022
Fix SearchActivities responsible
1 parent 10674ca commit e476652

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed
 

‎ui/src/components/SearchActivities.tsx

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Form, DatePicker, Button, Switch } from "antd"
1+
import { Row, Col, Form, DatePicker, Button, Switch } from "antd"
22
import moment from "moment"
33

44
interface SearchActivitiesProps {
@@ -7,10 +7,8 @@ interface SearchActivitiesProps {
77
}
88

99
export default function SearchActivities(props: SearchActivitiesProps): JSX.Element {
10-
return (
11-
<Form
12-
layout="inline"
13-
>
10+
const content = (
11+
<>
1412
<Form.Item label="Period">
1513
<DatePicker.RangePicker
1614
format="YYYY-MM-DD HH:mm"
@@ -33,6 +31,22 @@ export default function SearchActivities(props: SearchActivitiesProps): JSX.Elem
3331
Search
3432
</Button>
3533
</Form.Item>
36-
</Form>
34+
</>
35+
)
36+
return (
37+
<Row>
38+
{/* Mobile view */}
39+
<Col span={24} lg={0}>
40+
<Form layout="horizontal" >
41+
{content}
42+
</Form>
43+
</Col>
44+
{/* Laptop */}
45+
<Col span={0} lg={24}>
46+
<Form layout="inline" >
47+
{content}
48+
</Form>
49+
</Col>
50+
</Row>
3751
)
3852
}

0 commit comments

Comments
 (0)
This repository has been archived.