Skip to content

Commit 063273b

Browse files
committed
fix: update
1 parent 230cbaa commit 063273b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/pages/package-code/[[org]]/[packageName]/v/[version]/[...filePath].vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ function copyPermalinkUrl() {
249249
copyPermalink(url.toString())
250250
}
251251
252+
const { isTouchDeviceClient } = useScrollToTop()
252253
// Scroll to top of file content
253254
const contentContainer = useTemplateRef('contentContainer')
254255
function scrollToTop() {
@@ -469,7 +470,7 @@ defineOgImageComponent('Default', {
469470
@click="scrollToTop"
470471
>
471472
<span class="i-lucide:arrow-up w-3 h-3" />
472-
{{ $t('code.scroll_to_top') }}
473+
{{ isTouchDeviceClient ? '' : $t('code.scroll_to_top') }}
473474
</button>
474475
<button
475476
v-if="selectedLines"

0 commit comments

Comments
 (0)