chore: routing table nits (#17738)

* portal date preset selection with a high zindex

* increase height of data-table

* skeleton fixes
This commit is contained in:
sean-brydon
2024-11-19 23:04:45 +00:00
committed by GitHub
parent 352a6ba8cf
commit dfdb04acf4
3 changed files with 6 additions and 4 deletions
@@ -252,7 +252,7 @@ export function RoutingFormResponsesTable({
}
);
const { data, fetchNextPage, isFetching, hasNextPage } =
const { data, fetchNextPage, isFetching, hasNextPage, isLoading } =
trpc.viewer.insights.routingFormResponses.useInfiniteQuery(
{
teamId: selectedTeamId,
@@ -403,10 +403,10 @@ export function RoutingFormResponsesTable({
totalDBRowCount
);
if (isHeadersLoading || (isFetching && !data)) {
if (isHeadersLoading || ((isFetching || isLoading) && !data)) {
return (
<div
className="grid h-[75dvh]"
className="grid h-[85dvh]"
style={{ gridTemplateRows: "auto 1fr auto", gridTemplateAreas: "'header' 'body' 'footer'" }}>
<div
className="scrollbar-thin border-subtle relative h-full overflow-auto rounded-md border"
@@ -92,6 +92,8 @@ export const DateSelect = () => {
value={selectedPreset}
className="w-40 capitalize text-black"
defaultValue={selectedPreset}
styles={{ menuPortal: (base) => ({ ...base, zIndex: 9999 }) }}
menuPortalTarget={document.body}
onChange={(e) => {
if (e) {
updateDateRange(e.value);
@@ -59,7 +59,7 @@ export function DataTable<TData, TValue>({
return (
<div
className={classNames(
"grid h-[75dvh]", // Set a fixed height for the container
"grid h-[85dvh]", // Set a fixed height for the container
rest.className
)}
style={{