mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-25 01:38:35 +02:00
chore: scrollable and remove link wrapper
This commit is contained in:
@@ -18,7 +18,7 @@ export default function PageLayout({ children }: { children: React.ReactNode })
|
|||||||
|
|
||||||
<div className="relative flex min-w-0 flex-1 flex-col">
|
<div className="relative flex min-w-0 flex-1 flex-col">
|
||||||
<SlidingMenu />
|
<SlidingMenu />
|
||||||
<main className="relative flex flex-auto flex-col place-items-stretch lg:my-2 lg:mr-2 lg:rounded-md lg:border">
|
<main className="relative flex flex-auto flex-col place-items-stretch overflow-auto lg:my-2 lg:mr-2 lg:rounded-md lg:border">
|
||||||
{children}
|
{children}
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export function LinkRoute(): React.ReactElement {
|
|||||||
}, [isDeleteConfirmShown, isCommandPaletteOpen, isInCreateMode, handleCommandPaletteClose])
|
}, [isDeleteConfirmShown, isCommandPaletteOpen, isInCreateMode, handleCommandPaletteClose])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full flex-auto flex-col overflow-hidden">
|
<>
|
||||||
<LinkHeader />
|
<LinkHeader />
|
||||||
<LinkManage />
|
<LinkManage />
|
||||||
<LinkList
|
<LinkList
|
||||||
@@ -61,6 +61,6 @@ export function LinkRoute(): React.ReactElement {
|
|||||||
disableEnterKey={disableEnterKey}
|
disableEnterKey={disableEnterKey}
|
||||||
/>
|
/>
|
||||||
<LinkBottomBar />
|
<LinkBottomBar />
|
||||||
</div>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ const LinkList: React.FC<LinkListProps> = ({ activeItemIndex, setActiveItemIndex
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Primitive.div
|
<Primitive.div
|
||||||
className="mb-14 flex w-full flex-1 flex-col overflow-y-auto outline-none [scrollbar-gutter:stable]"
|
className="mb-11 flex w-full flex-1 flex-col overflow-y-auto outline-none [scrollbar-gutter:stable]"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
>
|
>
|
||||||
<DndContext
|
<DndContext
|
||||||
|
|||||||
Reference in New Issue
Block a user