Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
encryptedDegen committed Nov 27, 2024
1 parent 0da1500 commit f2fb238
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/app/[user]/components/user-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const UserInfo: React.FC<UserInfoProps> = ({ user }) => {
>
<div
ref={ProfileCardRef}
className='xl:sticky xl:h-fit xl:pb-4 overflow-visible'
className='xl:sticky xl:h-fit xl:pb-4'
style={{
top: '0px'
}}
Expand Down
1 change: 0 additions & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ body {
left: -34vw;
min-width: 210vw;
height: 129vw;
overflow: visible;
object-fit: cover;
pointer-events: none;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/leaderboard/components/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { LEADERBOARD_CHUNK_SIZE, LEADERBOARD_FETCH_LIMIT_PARAM } from '#/lib/con
import TableRow from './row.tsx'
import Filters from './filters.tsx'
import LoadingRow from './loading-row.tsx'
import PageSelector from './page-selector.tsx'
import PageSelector from '../../../components/page-selector.tsx'
import useLeaderboard from '../hooks/useLeaderboard.ts'
import type { LeaderboardItem } from '#/types/requests.ts'
import type { LeaderboardFilter } from '#/types/common.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/components/latest-followers.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useTranslation } from 'react-i18next'
import ProfileList from '#/components/profile-list'
import { useLatestFollowers } from '../hooks/use-latest-followers'
import PageSelector from '#/app/leaderboard/components/page-selector'
import PageSelector from '#/components/page-selector'

const LatestFollowers = () => {
const { t } = useTranslation()
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/components/leaderboard-summary.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PageSelector from '#/app/leaderboard/components/page-selector'
import PageSelector from '#/components/page-selector'
import { useTranslation } from 'react-i18next'
import { useLeaderboardSummary } from '../hooks/useLeaderboardSummary'
import { leaderboardFilters, leaderboardFiltersEmojies } from '#/lib/constants'
Expand Down
4 changes: 2 additions & 2 deletions src/components/navigation/components/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { useState, type Dispatch, type SetStateAction } from 'react'
import { cn } from '#/lib/utilities'
import { socials } from '#/components/footer'
import { usePathname } from 'next/navigation'
import VolumeSwitcher, { volumeOptions } from './volume-switcher'
import LanguageSelector from './language-selector'
import { LANGUAGES } from '#/lib/constants/languages'
import { EXTERNAL_LINKS, NAV_ITEMS } from '#/lib/constants'
import { useEFPProfile } from '#/contexts/efp-profile-context'
import VolumeSwitcher, { volumeOptions } from './volume-switcher'
import ThemeSwitcher, { themesWithIcons } from '#/components/navigation/components/theme-switcher'

interface MenuProps {
Expand Down Expand Up @@ -42,7 +42,7 @@ const Menu: React.FC<MenuProps> = ({ open, setOpen }) => {
return (
<div
className={cn(
'bg-neutral w-[220px] z-50 overflow-x-hidden sm:overflow-visible shadow-md border-[3px] transition-transform rounded-md border-grey absolute top-[120%] flex flex-col items-end -left-[90px]'
'bg-neutral w-[220px] z-50 overflow-x-hidden sm:overflow-auto shadow-md border-[3px] transition-transform rounded-md border-grey absolute top-[120%] flex flex-col items-end -left-[90px]'
)}
>
<div
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/components/wallet-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const WalletMenu: React.FC<WalletMenuProps> = ({ isResponsive = true }) => {
{walletMenOpenu && (
<div
className={cn(
'flex w-56 overflow-x-hidden sm:overflow-visible z-50 h-fit shadow-md border-[3px] rounded-lg bg-neutral border-grey absolute top-[120%] flex-col items-end right-0'
'flex w-56 overflow-x-hidden sm:overflow-auto z-50 h-fit shadow-md border-[3px] rounded-lg bg-neutral border-grey absolute top-[120%] flex-col items-end right-0'
)}
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const PageSelector: React.FC<PageSelectorProps> = ({
<button
onClick={() => handlePageChange(1)}
disabled={page === 1}
aria-label='skip to first page'
className='glass-card flex items-center hover:scale-110 disabled:hover:scale-100 justify-center font-bold group h-9 w-9 border-[3px] hover:border-text border-text/40 transition-all rounded-[10px] disabled:border-text/10'
>
<MdKeyboardDoubleArrowLeft className='w-6 h-6 group-hover:opacity-100 opacity-40 dark:opacity-80 group-disabled:opacity-20 transition-opacity' />
Expand All @@ -70,6 +71,7 @@ const PageSelector: React.FC<PageSelectorProps> = ({
<button
onClick={() => handlePageChange(page - 1)}
disabled={page === 1}
aria-label='previous page'
className='glass-card flex items-center hover:scale-110 disabled:hover:scale-100 justify-center font-bold group hover:border-text h-9 w-9 border-[3px] border-text/40 transition-all rounded-[10px] disabled:border-text/10'
>
<MdKeyboardArrowLeft className='w-6 h-6 group-hover:opacity-100 opacity-40 dark:opacity-80 group-disabled:opacity-20 transition-opacity' />
Expand All @@ -82,6 +84,7 @@ const PageSelector: React.FC<PageSelectorProps> = ({
<button
onClick={() => handlePageChange(page + 1)}
disabled={!hasNextPage}
aria-label='next page'
className='glass-card flex items-center hover:scale-110 disabled:hover:scale-100 justify-center font-bold group hover:border-text h-9 w-9 border-[3px] border-text/40 transition-all rounded-[10px] disabled:border-text/10'
>
<MdKeyboardArrowRight className='w-6 h-6 group-hover:opacity-100 opacity-40 dark:opacity-80 group-disabled:opacity-20 transition-opacity' />
Expand Down
2 changes: 1 addition & 1 deletion src/components/recommendations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ProfileList from '#/components/profile-list'
import type { DiscoverItemType } from '#/types/requests'
import { useEFPProfile } from '#/contexts/efp-profile-context'
import { fetchRecommendations } from '#/api/recommended/fetch-recommendations'
import PageSelector from '#/app/leaderboard/components/page-selector'
import PageSelector from '#/components/page-selector'

interface RecommendationsProps {
header?: string
Expand Down
1 change: 1 addition & 0 deletions src/components/user-profile-card/components/top-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const TopRow: React.FC<TopRowProps> = ({
<button
className='bg-neutral/80 p-1.5 rounded-full hover:scale-110 transition-all'
onClick={() => refetchProfile()}
aria-label='refresh profile'
>
<FaSyncAlt />
</button>
Expand Down
4 changes: 1 addition & 3 deletions src/components/user-profile-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ const UserProfileCard: React.FC<UserProfileCardProps> = ({
alt='profile header'
width={360}
height={120}
className={cn(
'w-full h-[120px] absolute object-cover rounded-t-lg top-0 left-0 -z-10'
)}
className={cn('w-full absolute object-cover rounded-t-lg top-0 left-0 -z-10')}
unoptimized={true}
/>
)}
Expand Down

0 comments on commit f2fb238

Please sign in to comment.