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:
1 parent
352a6ba8cf
commit
dfdb04acf4
3 files changed
+6
-4
No files matched your search
@@ -252,7 +252,7 @@ export function RoutingFormResponsesTable({
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const { data, fetchNextPage, isFetching, hasNextPage } =
|
const { data, fetchNextPage, isFetching, hasNextPage, isLoading } =
|
||||||
trpc.viewer.insights.routingFormResponses.useInfiniteQuery(
|
trpc.viewer.insights.routingFormResponses.useInfiniteQuery(
|
||||||
{
|
{
|
||||||
teamId: selectedTeamId,
|
teamId: selectedTeamId,
|
||||||
@@ -403,10 +403,10 @@ export function RoutingFormResponsesTable({
|
|||||||
totalDBRowCount
|
totalDBRowCount
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isHeadersLoading || (isFetching && !data)) {
|
if (isHeadersLoading || ((isFetching || isLoading) && !data)) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="grid h-[75dvh]"
|
className="grid h-[85dvh]"
|
||||||
style={{ gridTemplateRows: "auto 1fr auto", gridTemplateAreas: "'header' 'body' 'footer'" }}>
|
style={{ gridTemplateRows: "auto 1fr auto", gridTemplateAreas: "'header' 'body' 'footer'" }}>
|
||||||
<div
|
<div
|
||||||
className="scrollbar-thin border-subtle relative h-full overflow-auto rounded-md border"
|
className="scrollbar-thin border-subtle relative h-full overflow-auto rounded-md border"
|
||||||
|
|||||||
@@ -92,6 +92,8 @@ export const DateSelect = () => {
|
|||||||
value={selectedPreset}
|
value={selectedPreset}
|
||||||
className="w-40 capitalize text-black"
|
className="w-40 capitalize text-black"
|
||||||
defaultValue={selectedPreset}
|
defaultValue={selectedPreset}
|
||||||
|
styles={{ menuPortal: (base) => ({ ...base, zIndex: 9999 }) }}
|
||||||
|
menuPortalTarget={document.body}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
if (e) {
|
if (e) {
|
||||||
updateDateRange(e.value);
|
updateDateRange(e.value);
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export function DataTable<TData, TValue>({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"grid h-[75dvh]", // Set a fixed height for the container
|
"grid h-[85dvh]", // Set a fixed height for the container
|
||||||
rest.className
|
rest.className
|
||||||
)}
|
)}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in new issue
Block a user