@@ -125,7 +125,9 @@ const {
125125 data : fileContent,
126126 status : fileStatus,
127127 execute : fetchFileContent,
128- } = useFetch <PackageFileContentResponse >(() => fileContentUrl .value ! , { immediate: false })
128+ } = useFetch <PackageFileContentResponse >(() => fileContentUrl .value ! , {
129+ immediate: false ,
130+ })
129131
130132watch (
131133 fileContentUrl ,
@@ -237,7 +239,9 @@ function handleLineClick(lineNum: number, event: MouseEvent) {
237239}
238240
239241// Copy link to current line(s)
240- const { copied : permalinkCopied, copy : copyPermalink } = useClipboard ({ copiedDuring: 2000 })
242+ const { copied : permalinkCopied, copy : copyPermalink } = useClipboard ({
243+ copiedDuring: 2000 ,
244+ })
241245function copyPermalinkUrl() {
242246 const url = new URL (window .location .href )
243247 copyPermalink (url .toString ())
@@ -424,7 +428,8 @@ defineOgImageComponent('Default', {
424428 :class =" { 'bg-accent/10 text-accent border-accent/20': wordWrap }"
425429 @click =" wordWrap = !wordWrap"
426430 >
427- <span class =" i-lucide:wrap-text w-3 h-3" />
431+ <span v-if =" !!wordWrap" class =" i-lucide:wrap-text w-3 h-3" />
432+ <span v-if =" !wordWrap" class =" i-lucide:text w-3 h-3" />
428433 {{ $t('code.word_wrap') }}
429434 </button >
430435 <button
@@ -513,7 +518,9 @@ defineOgImageComponent('Default', {
513518 <p class =" text-fg-muted mb-2" >{{ $t('code.file_too_large') }}</p >
514519 <p class =" text-fg-subtle text-sm mb-4" >
515520 {{
516- $t('code.file_size_warning', { size: bytesFormatter.format(currentNode?.size ?? 0) })
521+ $t('code.file_size_warning', {
522+ size: bytesFormatter.format(currentNode?.size ?? 0),
523+ })
517524 }}
518525 </p >
519526 <LinkBase
@@ -566,7 +573,9 @@ defineOgImageComponent('Default', {
566573 <div v-else-if =" filePath && fileStatus === 'error'" class =" py-20 text-center" role =" alert" >
567574 <div class =" i-lucide:circle-alert w-8 h-8 mx-auto text-fg-subtle mb-4" />
568575 <p class =" text-fg-muted mb-2" >{{ $t('code.failed_to_load') }}</p >
569- <p class =" text-fg-subtle text-sm mb-4" >{{ $t('code.unavailable_hint') }}</p >
576+ <p class =" text-fg-subtle text-sm mb-4" >
577+ {{ $t('code.unavailable_hint') }}
578+ </p >
570579 <LinkBase
571580 variant =" button-secondary"
572581 :to =" `https://cdn.jsdelivr.net/npm/${packageName}@${version}/${filePath}`"
0 commit comments