mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
style(views): 替换内联样式为 Tailwind CSS 类并移除多余对齐
将 operation-preview-drawer 中的内联样式替换为对应的 Tailwind CSS 工具类,以提升可维护性。 同时移除 login-info-modal 中两个 flex 容器多余的 `justify-center` 类,保持布局简洁。
This commit is contained in:
@@ -74,7 +74,7 @@ const items = computed<DescriptionsProps['items']>(() => {
|
||||
{
|
||||
label: '登录设备',
|
||||
content: (
|
||||
<div class="flex items-center justify-center gap-[6px]">
|
||||
<div class="flex items-center gap-[6px]">
|
||||
{renderOsIcon(data.os, 'shrink-0')}
|
||||
{os}
|
||||
</div>
|
||||
@@ -83,7 +83,7 @@ const items = computed<DescriptionsProps['items']>(() => {
|
||||
{
|
||||
label: '浏览器',
|
||||
content: (
|
||||
<div class="flex items-center justify-center gap-[6px]">
|
||||
<div class="flex items-center gap-[6px]">
|
||||
{renderBrowserIcon(data.browser, 'shrink-0')}
|
||||
{data.browser}
|
||||
</div>
|
||||
|
||||
@@ -121,7 +121,7 @@ const items = computed<DescriptionsProps['items']>(() => {
|
||||
<template>
|
||||
<BasicDrawer :footer="false" class="w-[600px]" title="查看日志">
|
||||
<Descriptions
|
||||
:styles="{ label: { minWidth: '120px' } }"
|
||||
:classes="{ label: 'min-w-[120px]' }"
|
||||
:column="1"
|
||||
:items="items"
|
||||
bordered
|
||||
|
||||
Reference in New Issue
Block a user