@@ -169,14 +169,14 @@ export function PageContent(props: PageContentProps) {
169169 gridTemplateColumns : `1fr auto` ,
170170 } }
171171 >
172- < Heading className = "max-w-200 " level = { 1 } >
172+ < Heading className = "max-w-docs " level = { 1 } >
173173 第{ pageEntry . index } 章: { pageEntry . title }
174174 </ Heading >
175175 < div />
176176 { dynamicMdContent . map ( ( section , index ) => (
177177 < Fragment key = { section . id } >
178178 < div
179- className = "min-w-1/2 max-w-200 text-justify"
179+ className = "min-w-1/2 max-w-docs text-justify"
180180 id = { section . id } // 目次からaタグで飛ぶために必要
181181 ref = { ( el ) => {
182182 sectionRefs . current [ index ] = el ;
@@ -197,16 +197,17 @@ export function PageContent(props: PageContentProps) {
197197 </ div >
198198 </ Fragment >
199199 ) ) }
200+ < PageTransition
201+ lang = { path . lang }
202+ prevPage = { props . prevPage }
203+ nextPage = { props . nextPage }
204+ />
205+ < div />
200206 </ div >
201- < PageTransition
202- lang = { path . lang }
203- prevPage = { props . prevPage }
204- nextPage = { props . nextPage }
205- />
206207 { isFormVisible ? (
207- // sidebarの幅が80であることからleft-84 (sidebar.tsx参照)
208- // replがz-10を使用することからそれの上にするためz-20
209- < div className = "fixed bottom-4 right-4 left-4 lg :left-84 z-20 " >
208+ // leftは sidebarの幅 + 4
209+ // replがz-10, chatAreaがz-35を使用することからそれの上にするためz-40
210+ < div className = "fixed bottom-4 right-4 left-4 has-sidebar :left-[calc(var(--container-sidebar)+1rem)] z-40 " >
210211 < ChatForm
211212 path = { path }
212213 sectionContent = { dynamicMdContent }
@@ -248,11 +249,15 @@ function ChatListForSection(props: {
248249
249250 return (
250251 < >
251- { /*PC表示かつチャットを表示していない → チャットリストを表示*/ }
252+ { /*xl以上の幅かつチャットを表示していない → チャットリストを表示
253+ see also globals.css
254+ */ }
252255 < ul
253256 className = { clsx (
254- chatId === null ? "hidden lg:block" : "hidden" ,
255- "mt-2 ml-4 max-w-60" ,
257+ chatId === null
258+ ? "hidden has-chat-1:block"
259+ : "hidden has-chat-2:block" ,
260+ "mt-2 ml-4 w-full max-w-chat-list" ,
256261 "menu menu-sm" ,
257262 "rounded-lg shadow-sm bg-base-200"
258263 ) }
@@ -265,17 +270,23 @@ function ChatListForSection(props: {
265270 </ span >
266271 </ li >
267272 { filteredChatHistories . map ( ( { title, chatId } ) => (
268- < li key = { chatId } className = "" >
269- < Link href = { `/chat/${ chatId } ` } scroll = { false } >
273+ < li key = { chatId } >
274+ < Link
275+ className = "text-wrap text-justify"
276+ href = { `/chat/${ chatId } ` }
277+ scroll = { false }
278+ >
270279 { title }
271280 </ Link >
272281 </ li >
273282 ) ) }
274283 </ ul >
275- { /*PCでない or PC表示でチャットを表示している → 小さい吹き出しを表示 */ }
284+ { /*xl未満 or xl以上でチャットを表示している → 小さいボタンを表示 */ }
276285 < details
277286 className = { clsx (
278- chatId === null ? "block lg:hidden" : "block" ,
287+ chatId === null
288+ ? "block has-chat-1:hidden"
289+ : "block has-chat-2:block" ,
279290 "dropdown dropdown-end" ,
280291 "mt-2 ml-2"
281292 ) }
@@ -288,12 +299,17 @@ function ChatListForSection(props: {
288299 className = { clsx (
289300 "menu menu-sm dropdown-content" ,
290301 "w-max max-w-[75vw]" ,
302+ "z-30" ,
291303 "rounded-lg shadow-sm bg-base-200/60 backdrop-blur-xs"
292304 ) }
293305 >
294306 { filteredChatHistories . map ( ( { title, chatId } ) => (
295- < li key = { chatId } className = "" >
296- < Link href = { `/chat/${ chatId } ` } scroll = { false } >
307+ < li key = { chatId } >
308+ < Link
309+ className = "text-wrap text-justify"
310+ href = { `/chat/${ chatId } ` }
311+ scroll = { false }
312+ >
297313 { title }
298314 </ Link >
299315 </ li >
0 commit comments