Skip to content

πŸ› Bug: λ‘€λ§νŽ˜μ΄νΌμƒμ„± νŽ˜μ΄μ§€ μ§„μž…μ‹œ ν…μŠ€νŠΈ 에디터 λ‚΄λΆ€ 포컀싱#174

Merged
aahreum merged 5 commits intomainfrom
fix/textEditor-pofocus
Oct 14, 2025
Merged

πŸ› Bug: λ‘€λ§νŽ˜μ΄νΌμƒμ„± νŽ˜μ΄μ§€ μ§„μž…μ‹œ ν…μŠ€νŠΈ 에디터 λ‚΄λΆ€ 포컀싱#174
aahreum merged 5 commits intomainfrom
fix/textEditor-pofocus

Conversation

@Greensod-96
Copy link
Contributor

πŸ”— 이슈 번호

✨ μž‘μ—…ν•œ λ‚΄μš©

  • λ‘€λ§νŽ˜μ΄νΌμƒμ„± νŽ˜μ΄μ§€ μ§„μž…μ‹œ ν…μŠ€νŠΈ 에디터 λ‚΄λΆ€ 포컀싱 λ˜μ§€ μ•Šλ„λ‘ μˆ˜μ •

πŸ’ Review Point

πŸ’‘ 참고사항

@vercel
Copy link

vercel bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
frontend Ready Ready Preview Comment Oct 14, 2025 7:26am

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Greensod-96, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 둀링페이퍼 생성 νŽ˜μ΄μ§€μ—μ„œ ν…μŠ€νŠΈ 에디터가 μžλ™μœΌλ‘œ ν¬μ»€μ‹±λ˜λŠ” μ‚¬μš©μž κ²½ν—˜ 문제λ₯Ό ν•΄κ²°ν•©λ‹ˆλ‹€. μ—λ””ν„°μ˜ 초기 포컀슀 λ™μž‘μ„ μ œμ–΄ν•˜κ³ , λ©”μ‹œμ§€ μ½˜ν…μΈ κ°€ ν‘œμ‹œλ˜λŠ” 방식에 따라 μ»€μ„œ μŠ€νƒ€μΌμ„ λ™μ μœΌλ‘œ μ‘°μ •ν•˜μ—¬ μ‚¬μš©μžκ°€ μΈν„°νŽ˜μ΄μŠ€λ₯Ό 더 μ§κ΄€μ μœΌλ‘œ μ΄ν•΄ν•˜κ³  μƒν˜Έμž‘μš©ν•  수 μžˆλ„λ‘ ν•©λ‹ˆλ‹€. λ˜ν•œ, μ½”λ“œλ² μ΄μŠ€μ˜ μ „λ°˜μ μΈ 가독성을 높이기 μœ„ν•œ μ†Œκ·œλͺ¨ 정리 μž‘μ—…λ„ ν¬ν•¨λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

Highlights

  • ν…μŠ€νŠΈ 에디터 초기 포컀슀 문제 ν•΄κ²°: 둀링페이퍼 생성 νŽ˜μ΄μ§€ μ§„μž… μ‹œ ν…μŠ€νŠΈ 에디터가 μžλ™μœΌλ‘œ ν¬μ»€μ‹±λ˜λŠ” 버그λ₯Ό μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€. ReactQuill μ»΄ν¬λ„ŒνŠΈμ— autoFocus={false} 속성을 μΆ”κ°€ν•˜κ³ , λ Œλ”λ§ 지연을 μœ„ν•œ useState와 setTimeout을 ν™œμš©ν•˜μ—¬ 초기 포컀슀λ₯Ό λ°©μ§€ν•©λ‹ˆλ‹€.
  • μ½˜ν…μΈ  μ»€μ„œ μŠ€νƒ€μΌ κ°œμ„ : λ©”μ‹œμ§€ μΉ΄λ“œ(μš”μ•½ λ·°)와 λͺ¨λ‹¬(상세 λ·°)μ—μ„œ μ½˜ν…μΈ  μ˜μ—­μ˜ μ»€μ„œ μŠ€νƒ€μΌμ„ λͺ…ν™•ν•˜κ²Œ κ΅¬λΆ„ν•˜λ„λ‘ κ°œμ„ ν–ˆμŠ΅λ‹ˆλ‹€. μΉ΄λ“œ λ·°μ—μ„œλŠ” 손가락 μ»€μ„œ(pointer-mode)λ₯Ό, λͺ¨λ‹¬ λ·°μ—μ„œλŠ” κΈ°λ³Έ μ»€μ„œ(default-mode)λ₯Ό μ μš©ν•˜μ—¬ μ‚¬μš©μž κ²½ν—˜μ„ ν–₯μƒμ‹œμΌ°μŠ΅λ‹ˆλ‹€.
  • μ½”λ“œ 가독성 및 정리: λΆˆν•„μš”ν•œ 빈 쀄을 μ œκ±°ν•˜κ³ , λΆˆλ¦¬μ–Έ λ°˜ν™˜ λ‘œμ§μ„ κ°„μ†Œν™”ν•˜λŠ” λ“± μ „λ°˜μ μΈ μ½”λ“œ 가독성을 κ°œμ„ ν•˜κ³  μ •λ¦¬ν–ˆμŠ΅λ‹ˆλ‹€.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with πŸ‘ and πŸ‘Ž on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@github-actions
Copy link

πŸŽ‰ κ΅¬ν˜„ν•œ κΈ°λŠ₯ Preview: https://frontend-2oc5neq1h-fe-19-seongihuns-projects.vercel.app

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Greensod-96, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 둀링페이퍼 생성 νŽ˜μ΄μ§€μ—μ„œ ν…μŠ€νŠΈ 에디터가 μžλ™μœΌλ‘œ ν¬μ»€μ‹±λ˜λŠ” 버그λ₯Ό ν•΄κ²°ν•˜κ³ , μ½˜ν…μΈ  ν‘œμ‹œ 방식에 따라 μ»€μ„œ μŠ€νƒ€μΌμ„ λ‹€λ₯΄κ²Œ μ μš©ν•˜μ—¬ μ‚¬μš©μž κ²½ν—˜μ„ κ°œμ„ ν•©λ‹ˆλ‹€. μ£Όμš” λ³€κ²½ 사항은 ReactQuill μ»΄ν¬λ„ŒνŠΈμ˜ 포컀싱 λ™μž‘μ„ μ œμ–΄ν•˜κ³ , PostContent μ»΄ν¬λ„ŒνŠΈμ˜ λ Œλ”λ§ 및 μŠ€νƒ€μΌλ§ λ‘œμ§μ„ μ΅œμ ν™”ν•˜λŠ” κ²ƒμž…λ‹ˆλ‹€.

Highlights

  • ν…μŠ€νŠΈ 에디터 μžλ™ 포컀싱 문제 ν•΄κ²°: 둀링페이퍼 생성 νŽ˜μ΄μ§€ μ§„μž… μ‹œ ν…μŠ€νŠΈ 에디터가 μžλ™μœΌλ‘œ ν¬μ»€μ‹±λ˜λŠ” 버그λ₯Ό μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€. ReactQuill μ»΄ν¬λ„ŒνŠΈμ— autoFocus={false} 속성을 μΆ”κ°€ν•˜κ³ , μ»΄ν¬λ„ŒνŠΈ λ Œλ”λ§μ„ μ§€μ—°μ‹œν‚€λŠ” ready μƒνƒœλ₯Ό λ„μž…ν•˜μ—¬ μ›μΉ˜ μ•ŠλŠ” 포컀싱을 λ°©μ§€ν•©λ‹ˆλ‹€.
  • μ½˜ν…μΈ  μ»€μ„œ μŠ€νƒ€μΌ κ°œμ„ : μΉ΄λ“œ(μš”μ•½ λ·°)와 λͺ¨λ‹¬(상세 λ·°)μ—μ„œ PostContent μ»΄ν¬λ„ŒνŠΈμ˜ μ»€μ„œ μŠ€νƒ€μΌμ„ λ™μ μœΌλ‘œ μ μš©ν•˜λ„λ‘ κ°œμ„ ν–ˆμŠ΅λ‹ˆλ‹€. μΉ΄λ“œμ—μ„œλŠ” 손가락 μ»€μ„œ(pointer-mode)κ°€, λͺ¨λ‹¬μ—μ„œλŠ” κΈ°λ³Έ μ»€μ„œ(default-mode)κ°€ ν‘œμ‹œλ˜μ–΄ μ‚¬μš©μž κ²½ν—˜μ„ ν–₯μƒμ‹œν‚΅λ‹ˆλ‹€.
  • μ½”λ“œ 가독성 및 정리: 쑰건뢀 λ°˜ν™˜λ¬Έ λ‹¨μˆœν™”, λΆˆν•„μš”ν•œ 주석 제거, PostContent μ»΄ν¬λ„ŒνŠΈμ˜ κΈ°λ³Έ ν”„λ‘­ κ°’ μ„€μ • λ“± μ—¬λŸ¬ νŒŒμΌμ—μ„œ μ½”λ“œ 가독성을 높이고 μ •λ¦¬ν•˜λŠ” μž‘μ—…μ„ μˆ˜ν–‰ν–ˆμŠ΅λ‹ˆλ‹€.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with πŸ‘ and πŸ‘Ž on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

둀링페이퍼 생성 νŽ˜μ΄μ§€ μ§„μž… μ‹œ ν…μŠ€νŠΈ 에디터에 μžλ™μœΌλ‘œ ν¬μ»€μ‹±λ˜λŠ” 버그λ₯Ό μˆ˜μ •ν•œ PR 잘 λ³΄μ•˜μŠ΅λ‹ˆλ‹€. setTimeoutκ³Ό autoFocus={false}λ₯Ό μ‚¬μš©ν•˜μ—¬ 문제λ₯Ό ν•΄κ²°ν•˜μ…¨λ„€μš”. 이와 ν•¨κ»˜ μ½”λ“œ 가독성과 μœ μ§€λ³΄μˆ˜μ„±μ„ 높이기 μœ„ν•œ μ—¬λŸ¬ λ¦¬νŒ©ν† λ§λ„ μ§„ν–‰λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λͺ‡ κ°€μ§€ μΆ”κ°€μ μœΌλ‘œ κ°œμ„ ν•  수 μžˆλŠ” 뢀뢄에 λŒ€ν•΄ 리뷰 μ½”λ©˜νŠΈλ₯Ό λ‚¨κ²ΌμŠ΅λ‹ˆλ‹€. 쀑볡 λ‘œμ§μ„ μ œκ±°ν•˜κ³ , λΆˆν•„μš”ν•œ DOM 직접 μ‘°μž‘μ„ ν”Όν•˜λ©°, μ½”λ“œμ˜ λͺ…확성을 λ†’μ΄λŠ” 데 쀑점을 λ‘μ—ˆμŠ΅λ‹ˆλ‹€. 확인 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€.

Comment on lines +49 to +57
useEffect(() => {
if (!cardRef.current) {
return;
}
const editor = cardRef.current.querySelector('.ql-editor');
if (editor) {
editor.style.cursor = 'pointer';
}
}, [content]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

이 useEffect 훅은 DOM을 직접 μ‘°μž‘ν•˜μ—¬ μ»€μ„œ μŠ€νƒ€μΌμ„ λ³€κ²½ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. PostContent μ»΄ν¬λ„ŒνŠΈκ°€ card prop을 기반으둜 μ»€μ„œ μŠ€νƒ€μΌμ„ κ΄€λ¦¬ν•˜λ„λ‘ λ³€κ²½λ˜μ—ˆκΈ° λ•Œλ¬Έμ— 이 μ½”λ“œλŠ” 더 이상 ν•„μš”ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 이 ν›…κ³Ό ν•¨κ»˜ cardRef μ„ μ–Έ(35ν–‰), ref prop(61ν–‰)도 ν•¨κ»˜ μ œκ±°ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€.

onChange(content);
};
useEffect(() => {
const timer = setTimeout(() => setReady(true), 50); // 50ms λ’€ λ Œλ”
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

setTimeout에 μ‚¬μš©λœ 50은 "맀직 λ„˜λ²„"둜, μ½”λ“œμ˜ μ˜λ„λ₯Ό νŒŒμ•…ν•˜κΈ° μ–΄λ ΅κ²Œ λ§Œλ“­λ‹ˆλ‹€. 이 값을 EDITOR_RENDER_DELAY와 같이 의미 μžˆλŠ” μ΄λ¦„μ˜ μƒμˆ˜λ‘œ μ„ μ–Έν•˜μ—¬ μ‚¬μš©ν•˜λ©΄ 가독성과 μœ μ§€λ³΄μˆ˜μ„±μ΄ ν–₯μƒλ©λ‹ˆλ‹€.

Comment on lines 210 to 216
if (!range) {
// ν¬μ»€μŠ€κ°€ μ—†μœΌλ©΄ λ‹€μŒ μž…λ ₯에 적용될 포맷만 μ„€μ •
quill.format('font', font, 'api');
} else if (range.length === 0) {
// μ»€μ„œλ§Œ 있고 선택 μ˜μ—­μ΄ μ—†μœΌλ©΄ λ‹€μŒ μž…λ ₯에 적용
quill.format('font', font, 'api');
} else {
// 선택 μ˜μ—­μ΄ 있으면 ν•΄λ‹Ή μ˜μ—­μ—λ§Œ 폰트 적용
quill.formatText(range.index, range.length, { font }, 'api');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

if (!range) 블둝과 else if (range.length === 0) λΈ”λ‘μ˜ λ‚΄μš©μ΄ λ™μΌν•©λ‹ˆλ‹€. 두 쑰건을 || μ—°μ‚°μžλ‘œ ν†΅ν•©ν•˜μ—¬ μ½”λ“œλ₯Ό 더 κ°„κ²°ν•˜κ²Œ λ§Œλ“€ 수 μžˆμŠ΅λ‹ˆλ‹€.

    if (!range || range.length === 0) {
      quill.format('font', font, 'api');
    } else {
      quill.formatText(range.index, range.length, { font }, 'api');
    }

<PostContent
htmlContent={content}
className={'line-clamp-2 sm:line-clamp-3'}
className="line-clamp-2 cursor-pointer sm:line-clamp-3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

PostContent μ»΄ν¬λ„ŒνŠΈμ— cursor-pointer 클래슀λ₯Ό 직접 μΆ”κ°€ν•˜μ…¨μŠ΅λ‹ˆλ‹€. ν•˜μ§€λ§Œ PostContent μ»΄ν¬λ„ŒνŠΈλŠ” 이제 card prop이 true일 λ•Œ λ‚΄λΆ€μ μœΌλ‘œ pointer-mode 클래슀λ₯Ό μ μš©ν•˜μ—¬ μ»€μ„œ μŠ€νƒ€μΌμ„ κ΄€λ¦¬ν•©λ‹ˆλ‹€. λ”°λΌμ„œ 이 ν΄λž˜μŠ€λŠ” μ€‘λ³΅λ˜λ―€λ‘œ μ œκ±°ν•΄λ„ λ©λ‹ˆλ‹€.

Suggested change
className="line-clamp-2 cursor-pointer sm:line-clamp-3"
className="line-clamp-2 sm:line-clamp-3"

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

둀링페이퍼 생성 νŽ˜μ΄μ§€ μ§„μž… μ‹œ ν…μŠ€νŠΈ 에디터에 μžλ™μœΌλ‘œ ν¬μ»€μ‹±λ˜λŠ” 버그λ₯Ό μˆ˜μ •ν•œ 점이 μ’‹μŠ΅λ‹ˆλ‹€. useEffect와 setTimeout을 μ‚¬μš©ν•˜μ—¬ ReactQuill μ»΄ν¬λ„ŒνŠΈμ˜ λ Œλ”λ§μ„ μ§€μ—°μ‹œν‚€κ³  autoFocus={false} 속성을 λͺ…μ‹œμ μœΌλ‘œ μΆ”κ°€ν•˜μ—¬ 문제λ₯Ό ν•΄κ²°ν•œ μ ‘κ·Ό 방식이 μΈμƒμ μž…λ‹ˆλ‹€. λ˜ν•œ, μΉ΄λ“œ ν˜•νƒœμ™€ λͺ¨λ‹¬ ν˜•νƒœμ—μ„œ μ½˜ν…μΈ μ˜ μ»€μ„œ μŠ€νƒ€μΌμ„ λ‹€λ₯΄κ²Œ μ²˜λ¦¬ν•˜κΈ° μœ„ν•΄ CSS 클래슀λ₯Ό λ„μž…ν•œ 것도 쒋은 κ°œμ„ μž…λ‹ˆλ‹€. λ‹€λ§Œ, μ»€μ„œ μŠ€νƒ€μΌμ„ μ μš©ν•˜λŠ” λΆ€λΆ„μ—μ„œ 일뢀 μ€‘λ³΅λ˜λŠ” μ½”λ“œκ°€ μžˆμ–΄ 이에 λŒ€ν•œ 리뷰 μ˜κ²¬μ„ λ‚¨κ²ΌμŠ΅λ‹ˆλ‹€. ν•΄λ‹Ή 뢀뢄을 μ •λ¦¬ν•˜λ©΄ μ½”λ“œκ°€ 더 κΉ”λ”ν•˜κ³  μœ μ§€λ³΄μˆ˜ν•˜κΈ° μ’‹μ•„μ§ˆ 것 κ°™μŠ΅λ‹ˆλ‹€.

Comment on lines +49 to +57
useEffect(() => {
if (!cardRef.current) {
return;
}
const editor = cardRef.current.querySelector('.ql-editor');
if (editor) {
editor.style.cursor = 'pointer';
}
}, [content]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

이 useEffect 훅은 μ€‘λ³΅λœ 둜직으둜 λ³΄μž…λ‹ˆλ‹€. PostContent μ»΄ν¬λ„ŒνŠΈκ°€ card prop을 톡해 pointer-mode 클래슀λ₯Ό 이미 μ μš©ν•˜κ³  있으며, 이 ν΄λž˜μŠ€λŠ” quill-custom.cssμ—μ„œ μ»€μ„œ μŠ€νƒ€μΌμ„ pointer둜 μ„€μ •ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. λ”°λΌμ„œ 이 훅은 λΆˆν•„μš”ν•˜λ©°, Reactμ—μ„œ 직접 DOM μŠ€νƒ€μΌμ„ μ‘°μž‘ν•˜λŠ” λŒ€μ‹  CSS 클래슀λ₯Ό 톡해 μŠ€νƒ€μΌμ„ κ΄€λ¦¬ν•˜λŠ” 것이 더 λ°”λžŒμ§ν•©λ‹ˆλ‹€. 이 훅을 μ œκ±°ν•˜μ—¬ μ½”λ“œλ₯Ό λ‹¨μˆœν™”ν•˜λŠ” 것이 μ’‹κ² μŠ΅λ‹ˆλ‹€.

Comment on lines +70 to +72
className={`ql-editor w-full ${textStyle(font)} ${quillFontClass} ${className} ${
card ? 'pointer-mode cursor-pointer' : 'default-mode cursor-default'
}`}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

pointer-mode ν΄λž˜μŠ€κ°€ 이미 quill-custom.cssμ—μ„œ cursor: pointer !important;λ₯Ό μ μš©ν•˜κ³  μžˆμœΌλ―€λ‘œ, cursor-pointer 클래슀λ₯Ό ν•¨κ»˜ μ‚¬μš©ν•˜λŠ” 것은 μ€‘λ³΅μž…λ‹ˆλ‹€. default-mode의 κ²½μš°μ—λ„ cursor-defaultκ°€ μ€‘λ³΅λ©λ‹ˆλ‹€. μ½”λ“œλ₯Ό 더 κ°„κ²°ν•˜κ²Œ μœ μ§€ν•˜κΈ° μœ„ν•΄ μ€‘λ³΅λ˜λŠ” TailwindCSS μœ ν‹Έλ¦¬ν‹° 클래슀λ₯Ό μ œκ±°ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€.

Suggested change
className={`ql-editor w-full ${textStyle(font)} ${quillFontClass} ${className} ${
card ? 'pointer-mode cursor-pointer' : 'default-mode cursor-default'
}`}
className={`ql-editor w-full ${textStyle(font)} ${quillFontClass} ${className} ${
card ? 'pointer-mode' : 'default-mode'
}`}

<PostContent
htmlContent={content}
className={'line-clamp-2 sm:line-clamp-3'}
className="line-clamp-2 cursor-pointer sm:line-clamp-3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

PostContent에 μ „λ‹¬λ˜λŠ” className의 cursor-pointerλŠ” λΆˆν•„μš”ν•©λ‹ˆλ‹€. PostContent μ»΄ν¬λ„ŒνŠΈ λ‚΄λΆ€μ—μ„œ card prop이 true일 λ•Œ pointer-mode ν΄λž˜μŠ€κ°€ μ μš©λ˜μ–΄ 이미 μ»€μ„œ μŠ€νƒ€μΌμ„ μ²˜λ¦¬ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. μ€‘λ³΅λ˜λŠ” μŠ€νƒ€μΌμ„ μ œκ±°ν•˜μ—¬ μ½”λ“œλ₯Ό 더 λͺ…ν™•ν•˜κ²Œ λ§Œλ“€ 수 μžˆμŠ΅λ‹ˆλ‹€.

Suggested change
className="line-clamp-2 cursor-pointer sm:line-clamp-3"
className="line-clamp-2 sm:line-clamp-3"

Copy link
Member

@aahreum aahreum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

κ³ μƒν•˜μ…¨μŠ΅λ‹ˆλ‹€!

@aahreum aahreum merged commit 2ed8356 into main Oct 14, 2025
3 checks passed
@aahreum aahreum deleted the fix/textEditor-pofocus branch October 14, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

2 participants