perf: 优化AI小助手宽屏下的样式

This commit is contained in:
wangdan-fit2cloud 2024-09-06 19:00:13 +08:00
parent 408a57afac
commit 5b2a9d16e8

View File

@ -36,9 +36,11 @@
class="AiChat-embed" class="AiChat-embed"
> >
<template #operateBefore> <template #operateBefore>
<el-button type="primary" link class="new-chat-button mb-8" @click="newChat"> <div class="chat-width">
<el-icon><Plus /></el-icon><span class="ml-4"></span> <el-button type="primary" link class="new-chat-button mb-8" @click="newChat">
</el-button> <el-icon><Plus /></el-icon><span class="ml-4"></span>
</el-button>
</div>
</template> </template>
</AiChat> </AiChat>
</div> </div>
@ -334,5 +336,9 @@ onMounted(() => {
padding-top: 12px; padding-top: 12px;
} }
} }
.chat-width {
max-width: var(--app-chat-width, 860px);
margin: 0 auto;
}
} }
</style> </style>