Skip to content

Commit

Permalink
코드 예제가 길 경우, 스크롤이 정상적으로 작동하지 않는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CirnoV committed Jul 24, 2024
1 parent 813ceee commit 2453719
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/ui/tabs/CodeExampleTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ interface CodeExampleTabProps {

export const CodeExampleTab = ({ codePreviewSignal }: CodeExampleTabProps) => {
return (
<div
className="md:sticky top-4 flex flex-col"
style={{ height: "calc(100vh - 2rem)" }}
>
<div className="flex-1">
<HtmlEditor
className="h-full"
editable={false}
value={codePreviewSignal.value}
/>
</div>
<div className="md:sticky top-4 grid grid-rows-1 auto-cols-fr">
<HtmlEditor
className="h-full min-h-[calc(100dvh-2rem)]"
editable={false}
value={codePreviewSignal.value}
/>
</div>
);
};

0 comments on commit 2453719

Please sign in to comment.