Skip to content

Commit

Permalink
Merge pull request #194 from official-Trippy/feature/#127
Browse files Browse the repository at this point in the history
fixed: window 에러 수정
  • Loading branch information
kimkimjunjun authored Sep 30, 2024
2 parents acf7abd + 5533bc2 commit 0d393c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/post/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -737,13 +737,13 @@ function PostWrite() {
</form>
</div>
<div className='w-full h-[13rem] shadowall mt-[0.5rem] mb-[10rem] rounded-[0.8rem]'>
<input className={`text-[1.6rem] font-medium w-[50rem] outline-none ${window.innerWidth > 600 ? "ml-[6rem]" : "ml-[2rem]"} mt-[3.4rem]`}
<input className={`text-[1.6rem] font-medium w-[50rem] outline-none ${typeof window !== 'undefined' && window.innerWidth > 600 ? "ml-[6rem]" : "ml-[2rem]"} mt-[3.4rem]`}
type='text'
placeholder='태그를 3개 이상 입력해주세요.'
value={inputValue}
onChange={handleInputChange}
onKeyDown={handleKeyDown} />
<div className={`flex ${window.innerWidth > 600 ? "ml-[6rem]" : "ml-[2rem]"} mt-[1rem]`}>
<div className={`flex ${typeof window !== 'undefined' && window.innerWidth > 600 ? "ml-[6rem]" : "ml-[2rem]"} mt-[1rem]`}>
{tags.map((tag, index) => (
<span key={index} className='flex items-center bg-[#fa3463] text-white rounded-[1.6rem] text-[1.6rem] px-[0.8rem] py-[0.4rem] mr-2'>
{tag}
Expand Down

0 comments on commit 0d393c5

Please sign in to comment.