Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 글자 크기 수정 완료 및 리뷰UI 개선 중 #355

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/component/book/review/HandleReview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// import React, { useState, useRef } from "react";
import React, { useState } from "react";
import PropTypes from "prop-types";
import axiosPromise from "../../../util/axios";
Expand All @@ -6,6 +7,7 @@ import Image from "../../utils/Image";
import UserEdit from "../../../img/edit.svg";
import DeleteButton from "../../../img/x_button.svg";
import useDialog from "../../../hook/useDialog";
// import useAutosizeTextArea from "./useAutosizeTextArea";
import "../../../css/Review.css";

const HandleReview = ({
Expand All @@ -27,6 +29,9 @@ const HandleReview = ({
const [fixReview, setFixReview] = useState(false);
const [content, setContent] = useState(data.content);
const uploadDate = splitDate(createdAt)[0];
// const textAreaRef = useRef < HTMLTextAreaElement > null;
// useAutosizeTextArea(textAreaRef, content);

const getPermission = () => {
if (checkLogin === null) {
return false;
Expand Down Expand Up @@ -113,7 +118,7 @@ const HandleReview = ({
{fixReview ? (
<div>
<textarea
className="review-content-fix-area font-12"
className="review-content-fix-area font-15"
value={content}
type="text-area"
onChange={reviewFixArea}
Expand All @@ -122,8 +127,9 @@ const HandleReview = ({
) : (
<div>
<textarea
className="review-content-area font-12"
className="review-content-area font-15"
value={content}
// ref={textAreaRef}
disabled
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/component/book/review/PostReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const PostReview = ({
<div className="do-review__review-box">
<form className="do-review__review-form" onSubmit={onSubmitHandler}>
<textarea
className="review-area font-12"
className="review-area font-15"
value={content}
type="text-area"
onChange={onChange}
Expand Down
6 changes: 6 additions & 0 deletions src/css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,17 @@ body {
font-weight: lighter;
}

.font-15 {
font-size: 1.5rem;
font-weight: normal;
}

.font-14-bold {
font-size: 1.4rem;
font-weight: bold;
}


.font-14 {
font-size: 1.4rem;
font-weight: normal;
Expand Down