Skip to content

Commit 94f7b3d

Browse files
committed
chatformの幅とzを修正
1 parent 58825e9 commit 94f7b3d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/[docs_id]/pageContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export function PageContent(props: PageContentProps) {
8181
</div>
8282
)}
8383
{isFormVisible ? (
84-
<div className="fixed bottom-4 inset-x-4 z-50">
84+
// sidebarの幅が80であることからleft-84 (sidebar.tsx参照)
85+
// replがz-10を使用することからそれの上にするためz-20
86+
<div className="fixed bottom-4 right-4 left-4 lg:left-84 z-20">
8587
<ChatForm
8688
documentContent={props.documentContent}
8789
sectionContent={dynamicMdContent}

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function RootLayout({
3030
</PyodideProvider>
3131
</EmbedContextProvider>
3232
</div>
33-
<div className="drawer-side shadow-md">
33+
<div className="drawer-side shadow-md z-50">
3434
<label
3535
htmlFor="drawer-toggle"
3636
aria-label="close sidebar"

0 commit comments

Comments
 (0)