Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/[locale]/(user)/sectors/SectorsListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SectorsListsQuery,
} from '@/gql/generated/graphql';
import { useQuery } from '@tanstack/react-query';
import { Divider, SearchInput, Select, Spinner, Text } from 'opub-ui';
import { Divider, SearchInput, Select, Spinner, Text, Tooltip } from 'opub-ui';

import { GraphQL } from '@/lib/api';
import { cn, generateJsonLd } from '@/lib/utils';
Expand Down Expand Up @@ -217,13 +217,15 @@ const SectorsListing = () => {
{' '}
{/* min-w-0 prevents text overflow */}
<div className="flex flex-col gap-2">
<Text
<Tooltip content={sectors.name}>
<Text
variant="headingLg"
fontWeight="semibold"
className="line-clamp-1 text-ellipsis overflow-hidden"
>
{sectors.name}
</Text>
</Tooltip>
<Divider className="h-[2px] bg-greyExtralight" />
</div>
<div className="flex gap-1">
Expand Down
7 changes: 3 additions & 4 deletions lib/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ function useOnComplete() {
const searchParams = useSearchParams();
React.useEffect(() => navigateEnd(), [pathname, searchParams]);
}

function __RouterEvents() {
function InternalRouterEvents() {
useOnComplete();
return null;
}

// https://github.com/joulev/nextjs13-appdir-router-events/blob/52e3457f183b0b638cd14c6c0e8c138e71a76895/app/router-events.tsx
export function RouterEvents() {
return (
<React.Suspense>
<__RouterEvents />
<InternalRouterEvents />
</React.Suspense>
);
}

Loading