From 429edb6cd6eefca55ea4c43f976447680241d347 Mon Sep 17 00:00:00 2001 From: cade Date: Mon, 28 Aug 2023 13:34:38 -0700 Subject: [PATCH] various design tweaks --- app/(account)/_components/avatar.tsx | 1 - .../filterable-input-link-list.tsx | 14 ++-- .../[subjectId]/_components/event-card.tsx | 3 +- .../missions/[missionId]/sessions/page.tsx | 4 +- .../[subjectId]/timeline/@eventTypes/page.tsx | 64 ++++++++++--------- .../_components/timeline-event-card.tsx | 12 ++-- .../[subjectId]/timeline/@missions/page.tsx | 18 +++--- app/(account)/subjects/page.tsx | 4 +- app/(account)/templates/page.tsx | 2 +- 9 files changed, 64 insertions(+), 58 deletions(-) diff --git a/app/(account)/_components/avatar.tsx b/app/(account)/_components/avatar.tsx index bccc0d3c..3a637f24 100644 --- a/app/(account)/_components/avatar.tsx +++ b/app/(account)/_components/avatar.tsx @@ -37,7 +37,6 @@ const Avatar = ({ className, file, name, size = 'md' }: AvatarProps) => { loader={generateImageLoader({ aspectRatio: '1:1' })} sizes={sizes[size].imgSizes} src={src} - title={name} /> ) : ( {Array.from(name)[0]} diff --git a/app/(account)/inputs/_components/filterable-input-link-list.tsx b/app/(account)/inputs/_components/filterable-input-link-list.tsx index bfd0790b..4c74e3b7 100644 --- a/app/(account)/inputs/_components/filterable-input-link-list.tsx +++ b/app/(account)/inputs/_components/filterable-input-link-list.tsx @@ -1,6 +1,7 @@ 'use client'; import Avatar from '@/(account)/_components/avatar'; +import INPUT_LABELS from '@/(account)/_constants/constant-input-labels'; import usePrevious from '@/(account)/_hooks/use-previous'; import { ListInputsData } from '@/(account)/_server/list-inputs'; import forceArray from '@/(account)/_utilities/force-array'; @@ -78,18 +79,23 @@ const FilterableInputLinkList = ({ inputs }: FilterableInputLinkListProps) => { return (
  • diff --git a/app/(account)/subjects/[subjectId]/_components/event-card.tsx b/app/(account)/subjects/[subjectId]/_components/event-card.tsx index 66d8b32f..bfefcf62 100644 --- a/app/(account)/subjects/[subjectId]/_components/event-card.tsx +++ b/app/(account)/subjects/[subjectId]/_components/event-card.tsx @@ -71,8 +71,7 @@ const EventCard = ({ )} { return (
  • + {isTeamMember && ( + )} - - {isTeamMember && ( - - )} -
  • - ))} - + + ))} + + )} {isTeamMember && (