Skip to content

Commit

Permalink
fix: user page bug
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Oct 30, 2024
1 parent e9731ef commit 441a3c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ImageWithPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const ImageWithPreview = ({ src, alt, ...rest }: ImageWithPreviewProps) => {
src={src}
alt={alt}
className='max-h-full max-w-full object-contain'
style={{ cursor: 'zoom-out' }}
style={{ cursor: 'zoom-out', maxHeight: '80%' }}
/>
<button
className='absolute top-4 right-4 rounded-full bg-black bg-opacity-50 p-1 text-white'
Expand Down
2 changes: 1 addition & 1 deletion src/components/user/CommentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const CommentList: React.FC<CommentListProps> = ({ uid, t, i18n_lang }) => {
);
})}
<Pagination
hidden={!data.has_more}
hidden={data.page_total === 1}
NextText={t('page_next')}
PreviousText={t('page_prev')}
current={data.page}
Expand Down
2 changes: 1 addition & 1 deletion src/components/user/RepoList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const RepoList = ({ uid, t }: UserTabProps) => {
<div className='text-right'>
<select
onChange={selectState}
className='truncate text-ellipsis rounded-md border py-1 pr-7 text-sm dark:bg-gray-700'
className='w-fit truncate text-ellipsis rounded-md border py-1 pr-7 text-sm dark:bg-gray-700'
>
{categoryItems.map((item: any) => (
<option key={item.name} value={item.value}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/user/RepoRecord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const RepoData = ({ data, setPage, showStatus }: RepoDataProps) => {

<Pagination
className='mt-2'
hidden={!data.has_more}
hidden={data.page_total === 1}
PreviousText={t('page_prev')}
NextText={t('page_next')}
current={data.page}
Expand Down

0 comments on commit 441a3c2

Please sign in to comment.