style(logs): translate cleanup categories to Chinese and optimize log detail mobile layout
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user