Skip to content

Commit 5144967

Browse files
committed
border cleanup
1 parent 791af6e commit 5144967

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app/routes/$libraryId/$version.docs.framework.$framework.examples.$.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)