File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,14 @@ const route = useRoute()
1717const chartModal = useModal (' chart-modal' )
1818const hasChartModalTransitioned = shallowRef (false )
1919
20+ const { t } = useI18n ()
21+ const modalTitle = computed (() => {
22+ const facet = route .query .facet as string | undefined
23+ if (facet === ' likes' ) return t (' package.trends.items.likes' )
24+ if (facet === ' contributors' ) return t (' package.trends.items.contributors' )
25+ return t (' package.downloads.modal_title' )
26+ })
27+
2028const isChartModalOpen = shallowRef <boolean >(false )
2129
2230function handleModalClose() {
@@ -305,7 +313,7 @@ const config = computed(() => {
305313
306314 <PackageChartModal
307315 v-if =" isChartModalOpen && hasWeeklyDownloads"
308- :title =" $t('package.downloads.modal_title') "
316+ :title =" modalTitle "
309317 @close =" handleModalClose"
310318 @transitioned =" handleModalTransitioned"
311319 >
@@ -356,6 +364,7 @@ const config = computed(() => {
356364 padding : 0 !important ;
357365 letter-spacing : 0.04rem ;
358366}
367+
359368.vue-ui-sparkline text {
360369 font-family :
361370 Geist Mono,
You can’t perform that action at this time.
0 commit comments