Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: improve style

Marc Seitz80ee4cc1a182
diff --git a/components/datarooms/groups/group-header.tsx b/components/datarooms/groups/group-header.tsx
index f8f27e88..4b67a3f8 100644
--- a/components/datarooms/groups/group-header.tsx
+++ b/components/datarooms/groups/group-header.tsx
@@ -10,12 +10,14 @@ export const GroupHeader = ({
groupName: string;
}) => {
return (
- <div className="mx-auto flex w-full items-center gap-2">
+ <div className="mx-auto !mt-4 flex w-full items-center gap-2">
<Link href={`/datarooms/${dataroomId}/groups`}>
- <h2 className="text-lg">All Groups</h2>
+ <h2 className="text-md underline decoration-gray-500 underline-offset-4">
+ All Groups
+ </h2>
</Link>
<ChevronRightIcon className="h-4 w-4" />
- <h2 className="text-lg font-semibold text-primary">
+ <h2 className="text-md font-medium text-primary">
{groupName ?? "Management Team"}
</h2>
</div>
diff --git a/components/navigation-menu.tsx b/components/navigation-menu.tsx
index fb1faf2d..6f3267db 100644
--- a/components/navigation-menu.tsx
+++ b/components/navigation-menu.tsx
@@ -28,7 +28,7 @@ export const NavMenu: React.FC<React.PropsWithChildren<Props>> = ({
<nav
className={cn("sticky top-0 bg-background dark:bg-gray-900", className)}
>
- <div className="flex w-full items-center overflow-x-auto px-4">
+ <div className="flex w-full items-center overflow-x-auto px-4 pl-1">
<ul className="flex flex-row gap-4">
{navigation.map(({ label, href, segment, tag, disabled }) => (
<NavItem
@@ -64,6 +64,11 @@ const NavItem: React.FC<Props["navigation"][0]> = ({
active = router.pathname === "/datarooms/[id]";
}
+ // Special case for permissions - also active when pathname includes "groups"
+ if (segment === "permissions" && router.pathname.includes("groups")) {
+ active = true;
+ }
+
return (
<li
className={cn(
diff --git a/pages/datarooms/[id]/groups/index.tsx b/pages/datarooms/[id]/groups/index.tsx
index e6c9ff71..50442f57 100644
--- a/pages/datarooms/[id]/groups/index.tsx
+++ b/pages/datarooms/[id]/groups/index.tsx
@@ -64,7 +64,7 @@ export default function DataroomGroupPage() {
<div className="flex flex-wrap justify-between gap-6">
<div className="flex items-center gap-x-2">
<div className="space-y-1">
- <h3 className="text-2xl font-semibold tracking-tight text-foreground">
+ <h3 className="text-lg font-semibold tracking-tight text-foreground">
Groups
</h3>
<p className="flex flex-row items-center gap-2 text-sm text-muted-foreground">