style(views): 替换内联样式为 Tailwind CSS 类并移除多余对齐

将 operation-preview-drawer 中的内联样式替换为对应的 Tailwind CSS 工具类,以提升可维护性。
同时移除 login-info-modal 中两个 flex 容器多余的 `justify-center` 类,保持布局简洁。
This commit is contained in:
dap
2026-01-27 18:46:49 +08:00
parent dc2de11f57
commit 3907f206d9
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ const items = computed<DescriptionsProps['items']>(() => {
{ {
label: '登录设备', label: '登录设备',
content: ( content: (
<div class="flex items-center justify-center gap-[6px]"> <div class="flex items-center gap-[6px]">
{renderOsIcon(data.os, 'shrink-0')} {renderOsIcon(data.os, 'shrink-0')}
{os} {os}
</div> </div>
@@ -83,7 +83,7 @@ const items = computed<DescriptionsProps['items']>(() => {
{ {
label: '浏览器', label: '浏览器',
content: ( content: (
<div class="flex items-center justify-center gap-[6px]"> <div class="flex items-center gap-[6px]">
{renderBrowserIcon(data.browser, 'shrink-0')} {renderBrowserIcon(data.browser, 'shrink-0')}
{data.browser} {data.browser}
</div> </div>

View File

@@ -121,7 +121,7 @@ const items = computed<DescriptionsProps['items']>(() => {
<template> <template>
<BasicDrawer :footer="false" class="w-[600px]" title="查看日志"> <BasicDrawer :footer="false" class="w-[600px]" title="查看日志">
<Descriptions <Descriptions
:styles="{ label: { minWidth: '120px' } }" :classes="{ label: 'min-w-[120px]' }"
:column="1" :column="1"
:items="items" :items="items"
bordered bordered