Skip to content

Commit 24cc0d7

Browse files
Fix updated at on mobile (#2406)
1 parent b20fbcb commit 24cc0d7

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

components/Library/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import BookmarkButton from '~/components/BookmarkButton';
55
import CompatibilityTags from '~/components/CompatibilityTags';
66
import { GitHub } from '~/components/Icons';
77
import LibraryDescription from '~/components/Library/LibraryDescription';
8-
import UpdatedAtView from '~/components/Library/UpdateAtView';
8+
import UpdatedAtView from '~/components/Library/UpdatedAtView';
99
import Tooltip from '~/components/Tooltip';
1010
import { type LibraryType } from '~/types';
1111
import tw from '~/util/tailwind';
@@ -77,7 +77,11 @@ export default function Library({
7777
</View>
7878
)}
7979
{showTrendingMark && library.popularity && (
80-
<View style={tw`mb-1 flex-row items-center justify-between gap-6 pr-8`}>
80+
<View
81+
style={[
82+
tw`mb-3 flex-row items-center justify-between gap-6`,
83+
!isSmallScreen && skipMetadata && tw`pr-8`,
84+
]}>
8185
<Tooltip sideOffset={8} trigger={<TrendingMark library={library} />}>
8286
Trending Score is based on the last week to last month download rate.
8387
</Tooltip>

scenes/PackageOverviewScene.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { A, Caption, H6Section, Label, useLayout } from '~/common/styleguide';
77
import ContentContainer from '~/components/ContentContainer';
88
import MetaData from '~/components/Library/MetaData';
99
import TrendingMark from '~/components/Library/TrendingMark';
10-
import UpdatedAtView from '~/components/Library/UpdateAtView';
10+
import UpdatedAtView from '~/components/Library/UpdatedAtView';
1111
import CollapsibleSection from '~/components/Package/CollapsibleSection';
1212
import DependenciesSection from '~/components/Package/DependenciesSection';
1313
import DetailsNavigation from '~/components/Package/DetailsNavigation';

0 commit comments

Comments
 (0)