File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -152,3 +152,15 @@ body::-webkit-scrollbar {
152
152
/* Support Firefox */
153
153
scrollbar-width : none;
154
154
}
155
+
156
+ /* Shikiji */
157
+ /* refer: https://shikiji.netlify.app/guide/dual-themes#class-based-dark-mode */
158
+ html .dark .shiki ,
159
+ html .dark .shiki span {
160
+ color : var (--shiki-dark ) !important ;
161
+ background-color : var (--shiki-dark-bg ) !important ;
162
+ /* Optional, if you also want font styles */
163
+ font-style : var (--shiki-dark-font-style ) !important ;
164
+ font-weight : var (--shiki-dark-font-weight ) !important ;
165
+ text-decoration : var (--shiki-dark-text-decoration ) !important ;
166
+ }
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ const supportsPreview = computed(() => {
159
159
icon =" i-carbon-copy"
160
160
action mr1 mt--2px flex-none
161
161
:border =" false"
162
- @click =" copy(asset.publicPath, { silent: false, type: 'assets-public-path' })"
162
+ @click =" copy(asset.publicPath, { type: 'assets-public-path' })"
163
163
/>
164
164
<RouterLink
165
165
:to =" asset.publicPath"
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { VTooltip as vTooltip } from ' @vue/devtools-ui'
3
+
2
4
const props = defineProps <{
3
5
filepath: string
4
6
lineBreak? : boolean
@@ -7,13 +9,15 @@ const props = defineProps<{
7
9
8
10
const parsed = computed (() => ({ path: props .filepath }),
9
11
)
12
+
13
+ const { copy } = useCopy ()
10
14
</script >
11
15
12
16
<template >
13
17
<button
14
- font-mono hover:underline
18
+ v-tooltip = " 'Copy file path' " font-mono hover:underline
15
19
:class =" lineBreak ? '' : 'ws-nowrap of-hidden truncate'"
16
- :title =" filepath"
20
+ :title =" filepath" @click = " copy(filepath) "
17
21
>
18
22
{{ parsed.path }}
19
23
</button >
You can’t perform that action at this time.
0 commit comments