diff options
author | crupest <crupest@outlook.com> | 2020-09-03 19:19:50 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-09-03 19:19:50 +0800 |
commit | 47677c0bcc3ef8c582fb212b473d2aad1abd7132 (patch) | |
tree | d675af754cefc6113607e9f5b3efd3ceb150de4b | |
parent | b4d1ad9c17580bee2f862b16499b1e9048c3ee93 (diff) | |
download | timeline-47677c0bcc3ef8c582fb212b473d2aad1abd7132.tar.gz timeline-47677c0bcc3ef8c582fb212b473d2aad1abd7132.tar.bz2 timeline-47677c0bcc3ef8c582fb212b473d2aad1abd7132.zip |
Enhance search bar in home page.
-rw-r--r-- | Timeline/ClientApp/src/app/views/common/SearchInput.tsx | 6 | ||||
-rw-r--r-- | Timeline/ClientApp/src/app/views/home/index.tsx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Timeline/ClientApp/src/app/views/common/SearchInput.tsx b/Timeline/ClientApp/src/app/views/common/SearchInput.tsx index 12e61a5c..9833d515 100644 --- a/Timeline/ClientApp/src/app/views/common/SearchInput.tsx +++ b/Timeline/ClientApp/src/app/views/common/SearchInput.tsx @@ -36,9 +36,9 @@ const SearchInput: React.FC<SearchInputProps> = (props) => { ); return ( - <div className={clsx("form-inline my-2", props.className)}> + <Form inline className={clsx("my-2", props.className)}> <Form.Control - className="mr-sm-2" + className="mr-sm-2 flex-grow-1" value={props.value} onChange={onInputChange} onKeyPress={onInputKeyPress} @@ -56,7 +56,7 @@ const SearchInput: React.FC<SearchInputProps> = (props) => { </Button> )} </div> - </div> + </Form> ); }; diff --git a/Timeline/ClientApp/src/app/views/home/index.tsx b/Timeline/ClientApp/src/app/views/home/index.tsx index 11672c10..760adcea 100644 --- a/Timeline/ClientApp/src/app/views/home/index.tsx +++ b/Timeline/ClientApp/src/app/views/home/index.tsx @@ -34,8 +34,8 @@ const HomePage: React.FC = () => { return ( <> <Container fluid> - <Row> - <Col> + <Row className="justify-content-center"> + <Col xs={12} sm={10} md={8} lg={6}> <SearchInput className="justify-content-center" value={navText} |