Skip to content

Commit

Permalink
FIX: 안드로이드웹뷰 키보드 이슈 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Mar 24, 2024
1 parent 1090515 commit 6fbefff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions components/survey/survey-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ const SurveyForm = ({
return (
<form
onSubmit={form.handleSubmit(onValid)}
className="text-left grow flex flex-col space-y-6 overflow-y-hidden"
className="text-left relative grow flex flex-col space-y-6 overflow-y-hidden"
>
<div
className="text-subTitle1-medium"
dangerouslySetInnerHTML={{ __html: title }}
></div>
{type === 'OX' ? (
<div className="flex flex-col space-y-2 overflow-y-scroll">
<div className="flex flex-col space-y-2 overflow-y-scroll grow !mb-[190px]">
<Controller
name={`id`}
control={form.control}
Expand Down Expand Up @@ -174,7 +174,7 @@ const SurveyForm = ({
/>
</div>
) : type === 'MULTIPLE_CHOICE' ? (
<div className="flex flex-col space-y-2 overflow-y-scroll">
<div className="flex flex-col space-y-2 overflow-y-scroll grow !mb-[190px]">
<Controller
name={`id`}
defaultValue=""
Expand Down Expand Up @@ -261,7 +261,7 @@ const SurveyForm = ({
/>
</div>
) : type === 'NUMERIC_CHOICE' ? (
<div className="flex flex-col space-y-2 overflow-y-scroll">
<div className="flex flex-col space-y-2 overflow-y-scroll grow !mb-[190px]">
<Controller
name={`id`}
defaultValue=""
Expand Down Expand Up @@ -366,7 +366,7 @@ const SurveyForm = ({
/>
</div>
) : (
<div className="flex flex-col space-y-2 overflow-y-scroll">
<div className="flex flex-col space-y-2 overflow-y-scroll grow !mb-[190px]">
<Controller
name={`answer`}
defaultValue=""
Expand Down Expand Up @@ -421,7 +421,7 @@ const SurveyForm = ({
/>
</div>
)}
<div className="flex grow flex-col justify-end items-end w-full">
<div className="absolute bottom-0 flex w-full flex-col justify-end items-end">
{type !== 'SHORT_ANSWER' && (
<InputLabel
className="text-sub2-medium"
Expand Down
2 changes: 0 additions & 2 deletions components/ui/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { cn } from '@/lib/client/utils'
import * as React from 'react'
import { Drawer as DrawerPrimitive } from 'vaul'



const Drawer = ({
shouldScaleBackground = true,
...props
Expand Down
2 changes: 1 addition & 1 deletion layout/form-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const FormLayout = ({
</div>

{button && (
<div className="p-5 pb-0 mb-4 bg-white flex justify-center">
<div className="absolute bottom-0 w-full p-5 pb-0 mb-4 bg-white flex justify-center">
{button}
</div>
)}
Expand Down
1 change: 0 additions & 1 deletion pages/garden/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import ShareModal from '@/components/share-modal'
import InfoIcon from '@/components/svgs/info-icon'
import WriteList from '@/components/compositions/header/write-list'
import { FilterProvider } from '@/hooks/use-filter'
import BottomSheet from '@/components/bottomsheet-button'

const Pages = () => {
const { data } = useSession()
Expand Down

0 comments on commit 6fbefff

Please sign in to comment.