Skip to content

Commit

Permalink
Nested Comments Refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
siwachs committed Sep 5, 2024
1 parent ad3fa1b commit a9ce3ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/buttons/clientAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const ClientAuth: React.FC<{

<div
id="profile-menu"
className={`absolute ${profileMenuPositionClasses} z-50 w-full max-w-[360px] ${isProfileMenuOpen ? "block" : "hidden"} rounded-2xl border bg-[var(--app-bg-color-primary)]`}
className={`absolute ${profileMenuPositionClasses} z-50 w-full min-w-[360px] max-w-[360px] ${isProfileMenuOpen ? "block" : "hidden"} rounded-2xl border bg-[var(--app-bg-color-primary)]`}
>
<div className="relative mx-auto mt-[18px] h-[22px] max-w-[calc(100%-64px)] text-center text-sm font-medium tracking-normal">
{email}
Expand Down
5 changes: 3 additions & 2 deletions src/components/utils/lazyLoadComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ const LazyLoadComponent: React.FC<{ component: ComponentType }> = ({
([entry]) => {
if (entry.isIntersecting) {
setIsVisible(true);
observer.disconnect();

if (ref.current) observer.disconnect();
}
},
{
threshold: 0.1,
threshold: 0.01,
},
);

Expand Down

0 comments on commit a9ce3ef

Please sign in to comment.