Scheduling infrastructure for absolutely everyone.
fixed mobile layouts for team and team availability (#1382)
Peer Richelsen81e2ae1352fd
diff --git a/components/team/MemberList.tsx b/components/team/MemberList.tsxindex f4e1ae90f84..f76c3e0819e 100644--- a/components/team/MemberList.tsx+++ b/components/team/MemberList.tsx@@ -12,7 +12,7 @@ export default function MemberList(props: Props) {return (<div>- <ul className="px-6 mb-2 -mx-6 bg-white border divide-y divide-gray-200 rounded sm:px-4 sm:mx-0">+ <ul className="px-4 mb-2 -mx-4 bg-white border divide-y divide-gray-200 rounded sm:px-4 sm:mx-0">{props.members?.map((member) => (<MemberListItem key={member.id} member={member} team={props.team} />))}diff --git a/components/team/MemberListItem.tsx b/components/team/MemberListItem.tsxindex cc21f9aac26..1670b6e0f17 100644--- a/components/team/MemberListItem.tsx+++ b/components/team/MemberListItem.tsx@@ -74,7 +74,7 @@ export default function MemberListItem(props: Props) {<span className="block -mt-1 text-xs text-gray-400">{props.member.email}</span></div></div>- <div className="flex justify-center mr-2">+ <div className="flex mt-2 mr-2 sm:mt-0 sm:justify-center">{!props.member.accepted && <TeamRole invitePending />}<TeamRole role={props.member.role} /></div>@@ -91,7 +91,7 @@ export default function MemberListItem(props: Props) {disabled={!props.member.accepted}onClick={() => (props.member.accepted ? setShowTeamAvailabilityModal(true) : null)}color="minimal"- className="w-10 h-10 p-0 border border-transparent group text-neutral-400 hover:border-gray-200 hover:bg-white">+ className="hidden w-10 h-10 p-0 border border-transparent group text-neutral-400 hover:border-gray-200 hover:bg-white sm:block"><ClockIcon className="w-5 h-5 group-hover:text-gray-800" /></Button></Tooltip>diff --git a/components/team/TeamSettingsRightSidebar.tsx b/components/team/TeamSettingsRightSidebar.tsxindex d1556b72d37..1d07cc4ced9 100644--- a/components/team/TeamSettingsRightSidebar.tsx+++ b/components/team/TeamSettingsRightSidebar.tsx@@ -111,7 +111,7 @@ export default function TeamSettingsRightSidebar(props: { team: TeamWithMembers;</div>{props.team?.id && props.role !== MembershipRole.MEMBER && (<Link href={`/settings/teams/${props.team.id}/availability`}>- <div className="mt-5 space-y-1">+ <div className="hidden mt-5 space-y-1 sm:block"><LinkIconButton Icon={ClockIcon}>{"View Availability"}</LinkIconButton><p className="mt-2 text-sm text-gray-500">See your team members availability at a glance.</p></div>diff --git a/ee/components/team/availability/TeamAvailabilityScreen.tsx b/ee/components/team/availability/TeamAvailabilityScreen.tsxindex d6f0f167533..e3653e0740f 100644--- a/ee/components/team/availability/TeamAvailabilityScreen.tsx+++ b/ee/components/team/availability/TeamAvailabilityScreen.tsx@@ -62,9 +62,9 @@ export default function TeamAvailabilityScreen(props: Props) {return (<div className="flex flex-col flex-1 bg-white border rounded-sm border-neutral-200">- <div className="flex w-full p-5 pr-0 space-x-5 border-b border-gray-200">+ <div className="flex w-full p-4 space-x-5 border-b border-gray-200"><div className="flex flex-col">- <span className="font-bold text-gray-600">Date</span>+ <span className="text-sm font-medium text-neutral-700">Date</span><DatePickerdate={selectedDate.toDate()}className="p-1.5"@@ -74,7 +74,7 @@ export default function TeamAvailabilityScreen(props: Props) {/></div><div className="flex flex-col">- <span className="font-bold text-gray-600">Timezone</span>+ <span className="text-sm font-medium text-neutral-700">Timezone</span><TimezoneSelectid="timeZone"value={selectedTimeZone}@@ -83,8 +83,8 @@ export default function TeamAvailabilityScreen(props: Props) {className="w-full border border-gray-300 rounded-sm shadow-sm react-select-container focus:ring-neutral-800 focus:border-neutral-800 sm:text-sm"/></div>- <div>- <span className="font-bold text-gray-600">Slot Length</span>+ <div className="hidden sm:block">+ <span className="text-sm font-medium text-neutral-700">Slot Length</span><Selectoptions={[{ value: 15, label: "15 minutes" },