From bb3b1d84765c186caee7c1a0804d6b2405bb2aa0 Mon Sep 17 00:00:00 2001 From: tiantian <1012874180@qq.com> Date: Tue, 7 Jan 2025 12:00:40 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=A8=A1=E5=9E=8B=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=A0=B7=E5=BC=8F=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/list.scss | 30 +++++++++++++++++++++++++- frontend/src/components/ai/aimodel.vue | 9 +++++--- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/frontend/src/assets/list.scss b/frontend/src/assets/list.scss index d1d346e..f505bf8 100644 --- a/frontend/src/assets/list.scss +++ b/frontend/src/assets/list.scss @@ -69,4 +69,32 @@ $shadow-color: rgba(0, 0, 0, 0.1); // 阴影颜色 .desc { font-size: 16px; // 增大字体大小 } - +@media screen and (max-width: 768px) { + .mx-5 { + margin: 0; + } + :deep(.el-page-header){ + height: 5vh; + .el-page-header__left{ + margin-right: 0; + .el-page-header__back{ + width: 0; + } + .el-divider--vertical{ + margin: 0 5px; + } + .el-page-header__content{ + display: flex; + } + } + } + .scrollbarHeightList{ + height: 80vh; + } + :deep(.el-dialog){ + width: 100vw!important; + label{ + width: 20vw!important; + } + } +} diff --git a/frontend/src/components/ai/aimodel.vue b/frontend/src/components/ai/aimodel.vue index 5c2e224..3f50e20 100644 --- a/frontend/src/components/ai/aimodel.vue +++ b/frontend/src/components/ai/aimodel.vue @@ -8,6 +8,7 @@ import { Search } from "@element-plus/icons-vue"; import { getSystemConfig } from "@/system/config"; +import { isMobileDevice } from "@/util/device"; const currentLang = getLang() const modelStore = useModelStore(); const config = getSystemConfig(); @@ -102,7 +103,7 @@ async function download(saveData: any) { if (saveData.type == "net") { //console.log(saveData) const res = await completion.json(); - if(res.code == -1){ + if (res.code == -1) { notifyError(res.message); return } @@ -267,10 +268,12 @@ async function refreshOllama() { - + - +