Skip to content

Commit

Permalink
clean up session header
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Sep 14, 2024
1 parent 7d08807 commit 6c244c1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/_components/session-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const SessionPage = async ({
}
title={protocol.name}
/>
<nav className="flex w-full items-center justify-between px-4 sm:px-8">
<nav className="flex w-full items-center justify-between gap-4 px-4 sm:px-8">
<IconButton
disabled={!previousSessionId}
href={`/${shareOrSubjects}/${subjectId}/protocols/${protocolId}/sessions/${previousSessionId}`}
Expand All @@ -126,10 +126,13 @@ const SessionPage = async ({
replace
scroll={false}
/>
<div className="flex items-baseline gap-4">
<span className="smallcaps text-fg-4">
Session {currentSession.order + 1} of {highestOrder + 1}
</span>
<div className="flex min-w-0 items-baseline gap-4">
<div className="min-w-0">
<div className="truncate">
Session {currentSession.order + 1}
{session.title ? `: ${session.title}` : ''}
</div>
</div>
{currentSession.draft && (
<span className="smallcaps text-fg-4">Draft</span>
)}
Expand Down Expand Up @@ -157,10 +160,7 @@ const SessionPage = async ({
</Empty>
) : (
<>
{session.title && (
<p className="mx-auto max-w-xs px-4 text-center">{session.title}</p>
)}
<div className="smallcaps flex justify-center gap-2 pt-2 text-fg-4">
<div className="smallcaps mt-1 flex justify-center gap-2 text-fg-4">
{completedModules.length ? (
<>
<div>
Expand Down

0 comments on commit 6c244c1

Please sign in to comment.