Skip to content

Commit 0f067b2

Browse files
committed
Make the CoachingSessionSelector component be more responsive on the coaching session page.
1 parent e840ad4 commit 0f067b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/coaching-sessions/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default function CoachingSessionsPage() {
151151
style={siteConfig.titleStyle}
152152
onRender={handleTitleRender}
153153
></CoachingSessionTitle>
154-
<div className="ml-auto flex w-[28rem] space-x-2 sm:justify-end">
154+
<div className="ml-auto flex w-full sm:max-w-sm md:max-w-md space-x-2 sm:justify-end md:justify-start">
155155
<CoachingSessionSelector
156156
relationshipId={currentCoachingRelationshipId}
157157
disabled={!currentCoachingRelationshipId}

src/components/ui/coaching-session-selector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ export default function CoachingSessionSelector({
186186

187187
const displayValue = currentSession ? (
188188
<div className="flex flex-col w-full">
189-
<span className="truncate overflow-hidden text-left">
189+
<span className="truncate text-left">
190190
{currentGoal?.title || "No goal set"}
191191
</span>
192-
<span className="text-sm text-gray-500 text-left truncate overflow-hidden">
192+
<span className="text-sm text-gray-500 text-left truncate">
193193
{getDateTimeFromString(currentSession.date).toLocaleString(
194194
DateTime.DATETIME_FULL
195195
)}

0 commit comments

Comments
 (0)