style(logs): translate cleanup categories to Chinese and optimize log detail mobile layout

This commit is contained in:
duorameng
2026-05-19 09:39:19 +08:00
parent a31c4b9f03
commit cded935c4d
3 changed files with 26 additions and 3 deletions
+6 -1
View File
@@ -269,7 +269,7 @@ function onDialogClose(open: boolean) {
<span>{{ selectedLog.level === LOG_LEVEL.INFO ? '信息' : selectedLog.level === LOG_LEVEL.WARNING ? '警告' : '错误' }}</span>
</div>
</Badge>
<span class="text-[10px] text-muted-foreground font-mono">{{ selectedLog ? formatDate(selectedLog.created_at) : '-' }}</span>
<span class="hidden sm:inline text-[10px] text-muted-foreground font-mono">{{ selectedLog ? formatDate(selectedLog.created_at) : '-' }}</span>
</div>
</template>
@@ -289,6 +289,11 @@ function onDialogClose(open: boolean) {
{{ detailDialogProps.error }}
</div>
</div>
<!-- 移动端/小屏下在右下角展示时间 -->
<div v-if="selectedLog" class="sm:hidden flex justify-end text-[10px] text-muted-foreground font-mono opacity-80 pt-1">
{{ formatDate(selectedLog.created_at) }}
</div>
</div>
</div>
</BaihuDialog>
+6 -1
View File
@@ -269,7 +269,7 @@ function onDialogClose(open: boolean) {
<span>{{ selectedLog.level === LOG_LEVEL.INFO ? '信息' : selectedLog.level === LOG_LEVEL.WARNING ? '警告' : '错误' }}</span>
</div>
</Badge>
<span class="text-[10px] text-muted-foreground font-mono">{{ selectedLog ? formatDate(selectedLog.created_at) : '-' }}</span>
<span class="hidden sm:inline text-[10px] text-muted-foreground font-mono">{{ selectedLog ? formatDate(selectedLog.created_at) : '-' }}</span>
</div>
</template>
@@ -289,6 +289,11 @@ function onDialogClose(open: boolean) {
{{ detailDialogProps.error }}
</div>
</div>
<!-- 移动端/小屏下在右下角展示时间 -->
<div v-if="selectedLog" class="sm:hidden flex justify-end text-[10px] text-muted-foreground font-mono opacity-80 pt-1">
{{ formatDate(selectedLog.created_at) }}
</div>
</div>
</div>
</BaihuDialog>