Skip to content

Commit

Permalink
refactor: cleanup z-index on document page
Browse files Browse the repository at this point in the history
  • Loading branch information
mfts committed Jan 18, 2025
1 parent cbea04f commit 564fb32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pages/documents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Documents() {

return (
<AppLayout>
<div className="sticky top-0 z-50 bg-white p-4 pb-0 dark:bg-gray-900 sm:mx-4 sm:pt-8">
<div className="sticky top-0 bg-white p-4 pb-0 dark:bg-gray-900 sm:mx-4 sm:pt-8">
<section className="mb-4 flex items-center justify-between space-x-2 sm:space-x-0">
<div className="space-y-0 sm:space-y-1">
<h2 className="text-xl font-semibold tracking-tight text-foreground sm:text-2xl">
Expand Down
15 changes: 1 addition & 14 deletions pages/documents/tree/[...name].tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useRouter } from "next/router";

import { useTeam } from "@/context/team-context";
import { FileIcon, FolderIcon, FolderPlusIcon, PlusIcon } from "lucide-react";
import { FolderPlusIcon, PlusIcon } from "lucide-react";

import { AddDocumentModal } from "@/components/documents/add-document-modal";
import { DocumentsList } from "@/components/documents/documents-list";
Expand Down Expand Up @@ -32,19 +32,6 @@ export default function DocumentTreePage() {
Manage all your documents in one place.
</p>
</div>
{/* <div className="flex items-center justify-between gap-4">
<AddDocumentModal>
<Button
size="icon"
className="fixed bottom-6 right-5 z-30 lg:hidden sm:bottom-0 sm:right-0 sm:relative w-10 sm:w-44 h-10 sm:h-10"
>
<span className="hidden sm:block">Add New Document</span>
<span className="block sm:hidden">
<PlusIcon className="w-6 h-6" />
</span>
</Button>
</AddDocumentModal>
</div> */}
<div className="flex items-center gap-x-2">
<AddDocumentModal>
<Button className="gap-x-3 px-3" title="Add Document">
Expand Down

0 comments on commit 564fb32

Please sign in to comment.