File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ function RouteComponent() {
359359 </ div >
360360 < div className = "flex-1 lg:px-6 flex flex-col min-h-0" >
361361 < div
362- className = { `flex flex-col min-h-[80dvh] ${
362+ className = { `flex flex-col min-h-[80dvh] border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden ${
363363 isFullScreen
364364 ? 'fixed inset-0 z-50 bg-white dark:bg-gray-900 p-4'
365365 : ''
@@ -430,9 +430,9 @@ function RouteComponent() {
430430 < div
431431 ref = { sidebarRef }
432432 style = { { width : isSidebarOpen ? sidebarWidth : 0 } }
433- className = { `flex-shrink-0 overflow-y-auto border-r border -gray-200 dark:border -gray-700 pr-2 bg -gray-50 dark:bg -gray-800/50 shadow-sm ${
433+ className = { `flex-shrink-0 overflow-y-auto bg-gradient-to-r from -gray-50 via -gray-50 to-transparent dark:from -gray-800/ 50 dark:via -gray-800/50 dark:to-transparent pr-2 shadow-sm ${
434434 isResizing ? '' : 'transition-all duration-300'
435- } ${ isSidebarOpen ? '' : 'w-0 pr-0 border-r-0 ' } `}
435+ } ${ isSidebarOpen ? '' : 'w-0 pr-0' } `}
436436 >
437437 { gitHubFiles && isSidebarOpen ? (
438438 < div className = "p-2" >
@@ -455,7 +455,10 @@ function RouteComponent() {
455455 onMouseDown = { startResize }
456456 />
457457 < div className = "flex-1 overflow-auto relative" >
458- < CodeBlock isEmbedded className = "max-h-[80dvh]" >
458+ < CodeBlock
459+ isEmbedded
460+ className = { `max-h-[${ isFullScreen ? '90' : '80' } dvh]` }
461+ >
459462 < code
460463 className = { `language-${ overrideExtension (
461464 currentPath . split ( '.' ) . pop ( )
You can’t perform that action at this time.
0 commit comments