chore: fix tree node style
This commit is contained in:
@@ -4,7 +4,7 @@ import { useRoute, useRouter } from 'vue-router'
|
|||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { Dialog, DialogContent } from '@/components/ui/dialog'
|
import { Dialog, DialogContent } from '@/components/ui/dialog'
|
||||||
import XTerminal from '@/components/XTerminal.vue'
|
import XTerminal from '@/components/XTerminal.vue'
|
||||||
import { Save, Play, Pencil, Eye, X, Download } from 'lucide-vue-next'
|
import { Save, Play, Pencil, Eye, X, Download, Trash2 } from 'lucide-vue-next'
|
||||||
import { api, type FileNode, type MiseLanguage } from '@/api'
|
import { api, type FileNode, type MiseLanguage } from '@/api'
|
||||||
import { toast } from 'vue-sonner'
|
import { toast } from 'vue-sonner'
|
||||||
import { PATHS, FILE_RUNNERS } from '@/constants'
|
import { PATHS, FILE_RUNNERS } from '@/constants'
|
||||||
@@ -446,8 +446,8 @@ onUnmounted(() => {
|
|||||||
<Button variant="ghost" size="sm" class="h-6 text-xs gap-1 px-2" @click="dialogsRef?.openRename(selectedPath)">
|
<Button variant="ghost" size="sm" class="h-6 text-xs gap-1 px-2" @click="dialogsRef?.openRename(selectedPath)">
|
||||||
<Pencil class="h-3 w-3" /> <span class="hidden sm:inline">重命名</span>
|
<Pencil class="h-3 w-3" /> <span class="hidden sm:inline">重命名</span>
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="ghost" size="sm" class="h-6 text-xs gap-1 px-2" @click="dialogsRef?.openDelete(selectedPath)">
|
<Button variant="ghost" size="sm" class="h-6 text-xs gap-1 px-2 hover:bg-destructive/10 transition-colors" @click="dialogsRef?.openDelete(selectedPath)">
|
||||||
<X class="h-3 w-3 text-destructive" /> <span class="hidden sm:inline">删除</span>
|
<Trash2 class="h-3 w-3" /> <span class="hidden sm:inline">删除</span>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<template v-if="selectedFile">
|
<template v-if="selectedFile">
|
||||||
|
|||||||
Reference in New Issue
Block a user