fix: team availability data table scrolling (#13036)

* fixed data table scrolling for team availability

* Update packages/features/shell/Shell.tsx

* nit
This commit is contained in:
Peer Richelsen authored and GitHub committed 2024-01-04 20:33:02 +00:00
1 parent ecb693c70e
commit 49f9f5489b
7 files changed
+23 -14

No files matched your search

@@ -130,7 +130,7 @@ export function AvailabilitySliderTable() {
id: "slider",
header: () => {
return (
<div className="flex items-center">
<div className="flex items-center space-x-2">
<ButtonGroup containerProps={{ className: "space-x-0" }}>
<Button
color="minimal"
@@ -145,7 +145,7 @@ export function AvailabilitySliderTable() {
variant="icon"
/>
</ButtonGroup>
<span>{browsingDate.format("DD dddd MMM, YYYY")}</span>
<span>{browsingDate.format("LL")}</span>
</div>
);
},
@@ -192,8 +192,9 @@ export function AvailabilitySliderTable() {
browsingDate: browsingDate.toDate(),
})}>
<>
<div className="relative">
<div className="relative -mx-2 w-[calc(100%+16px)] overflow-x-scroll px-2 lg:-mx-6 lg:w-[calc(100%+48px)] lg:px-6">
<DataTable
variant="compact"
searchKey="member"
tableContainerRef={tableContainerRef}
columns={memorisedColumns}
@@ -106,7 +106,7 @@ export function TimeDial({ timezone, dateRanges }: TimeDialProps) {
return (
<>
<div className="flex items-end overflow-auto text-sm">
<div className="flex items-end justify-center overflow-auto text-sm">
{days.map((day, i) => {
if (!day.length) return null;
const dateWithDaySet = usersTimezoneDate.add(i - 1, "day");
@@ -165,7 +165,7 @@ export function TimeDial({ timezone, dateRanges }: TimeDialProps) {
key={h}
className={classNames(
"flex h-8 flex-col items-center justify-center",
isInRange ? "text-emphasis dark:text-inverted" : "",
isInRange ? "text-emphasis" : "",
isInRange && !rangeOverlap ? "bg-success" : "",
hours ? "" : "bg-subtle font-medium"
)}