diff --git a/package.json b/package.json index 2bbab0d..fad1c25 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "react": "^18.2.0", "react-redux": "^8.1.2", "react-router-dom": "^6.16.0", + "react-textarea-autosize": "^8.5.3", "redux-persist": "^6.0.0", "redux-thunk": "^2.4.2", "yet-another-react-lightbox": "^3.12.2" diff --git a/src/pages/LocationDetail/index.css b/src/pages/LocationDetail/index.css index de75f8b..01b422a 100644 --- a/src/pages/LocationDetail/index.css +++ b/src/pages/LocationDetail/index.css @@ -86,6 +86,18 @@ img { cursor: pointer; } +.review-box-content { + width: 75%; + margin: 0 auto; +} + + +@media screen and (max-width: 1024px) { + .review-box-content { + width: 100%; + } +} + @media screen and (max-width: 380px) { .header-link { white-space: nowrap; diff --git a/src/pages/LocationDetail/index.tsx b/src/pages/LocationDetail/index.tsx index ca1448e..4cad30b 100644 --- a/src/pages/LocationDetail/index.tsx +++ b/src/pages/LocationDetail/index.tsx @@ -19,6 +19,7 @@ import { UserRootState } from '../../store/type'; import { DEFAULT_AVATAR_IMG } from '../../constants/default'; import './index.css'; import { IHttpResponse } from '../../types/common'; +import ReactTextareaAutosize from 'react-textarea-autosize'; const SORT_TYPE = [ 'highest rated', @@ -324,7 +325,7 @@ function LocationDetail() {
SIGN IN TO REVIEW
:
-
+
@@ -372,12 +373,11 @@ function LocationDetail() { content={currentUserReview.comments} /> : -