💎 优化所有文件卡片样式
This commit is contained in:
@@ -391,14 +391,14 @@
|
||||
<tr
|
||||
v-for="file in tableData"
|
||||
:key="file.id"
|
||||
class="transition-colors duration-200"
|
||||
class="file-row-2026 transition-all duration-200 hover:-translate-y-0.5"
|
||||
:class="[
|
||||
selectedFileIds.has(file.id)
|
||||
? isDarkMode
|
||||
? 'bg-indigo-950/30'
|
||||
: 'bg-indigo-50/70'
|
||||
? 'is-selected-dark'
|
||||
: 'is-selected'
|
||||
: '',
|
||||
isDarkMode ? 'hover:bg-gray-700/70' : 'hover:bg-gray-50'
|
||||
file.isExpiredFile ? 'is-muted' : ''
|
||||
]"
|
||||
>
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
@@ -418,7 +418,7 @@
|
||||
</td>
|
||||
<td class="px-6 py-4">
|
||||
<div class="flex min-w-0 items-center gap-3">
|
||||
<div class="rounded-lg p-2" :class="[isDarkMode ? 'bg-gray-700' : 'bg-gray-100']">
|
||||
<div class="rounded-[22px] p-2" :class="[isDarkMode ? 'bg-gray-700' : 'bg-gray-100']">
|
||||
<FileTextIcon v-if="file.isTextFile" class="h-4 w-4" :class="[mutedTextClass]" />
|
||||
<FileIcon v-else class="h-4 w-4" :class="[mutedTextClass]" />
|
||||
</div>
|
||||
@@ -492,7 +492,7 @@
|
||||
<button
|
||||
type="button"
|
||||
:title="t('fileManage.detail')"
|
||||
class="inline-flex items-center rounded-md px-3 py-1.5 transition-colors duration-200"
|
||||
class="inline-flex items-center rounded-[30px] px-3 py-1.5 shadow-sm transition-all duration-200 hover:shadow-md"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'bg-indigo-900/20 text-indigo-300 hover:bg-indigo-900/30'
|
||||
@@ -507,7 +507,7 @@
|
||||
v-if="file.canPreviewText"
|
||||
type="button"
|
||||
:title="t('fileManage.viewText')"
|
||||
class="inline-flex items-center rounded-md px-3 py-1.5 transition-colors duration-200"
|
||||
class="inline-flex items-center rounded-[30px] px-3 py-1.5 shadow-sm transition-all duration-200 hover:shadow-md"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
||||
@@ -524,7 +524,7 @@
|
||||
file.isTextFile ? t('fileManage.exportText') : t('fileManage.downloadFile')
|
||||
"
|
||||
:disabled="Boolean(downloadingFileId)"
|
||||
class="inline-flex items-center rounded-md px-3 py-1.5 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-60"
|
||||
class="inline-flex items-center rounded-[30px] px-3 py-1.5 shadow-sm transition-all duration-200 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:shadow-sm"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'bg-emerald-900/20 text-emerald-300 hover:bg-emerald-900/30'
|
||||
@@ -541,7 +541,7 @@
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex items-center rounded-md px-3 py-1.5 transition-colors duration-200"
|
||||
class="inline-flex items-center rounded-[30px] px-3 py-1.5 shadow-sm transition-all duration-200 hover:shadow-md"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'bg-blue-900/20 text-blue-300 hover:bg-blue-900/30'
|
||||
@@ -554,7 +554,7 @@
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex items-center rounded-md px-3 py-1.5 transition-colors duration-200"
|
||||
class="inline-flex items-center rounded-[30px] px-3 py-1.5 shadow-sm transition-all duration-200 hover:shadow-md"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'bg-red-900/20 text-red-300 hover:bg-red-900/30'
|
||||
|
||||
Reference in New Issue
Block a user