From 6e2ca8f1c3a837899f9211452065e2a754aae590 Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Thu, 11 Dec 2025 21:35:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=202.7=20=E6=A8=A1=E5=9E=8B=E5=BA=93?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Ai.Vue3/index.html | 2 +- Yi.Ai.Vue3/src/api/model/types.ts | 3 +- .../src/pages/modelLibrary/element.text | 98 ------------------- Yi.Ai.Vue3/src/pages/modelLibrary/index.vue | 61 +++++++++--- 4 files changed, 50 insertions(+), 114 deletions(-) delete mode 100644 Yi.Ai.Vue3/src/pages/modelLibrary/element.text diff --git a/Yi.Ai.Vue3/index.html b/Yi.Ai.Vue3/index.html index 109b2ab2..a5fa06b8 100644 --- a/Yi.Ai.Vue3/index.html +++ b/Yi.Ai.Vue3/index.html @@ -112,7 +112,7 @@
-
意心Ai 2.6
+
意心Ai 2.7
海外地址,仅首次访问预计加载约10秒
@@ -304,6 +314,7 @@ onMounted(() => { :key="provider" :checked="selectedProviders.includes(provider)" class="filter-tag" + @change="toggleProvider(provider)" > {{ provider }} @@ -463,8 +474,8 @@ onMounted(() => { {{ model.modelTypeName }} - - {{ model.modelApiTypeName }} + + {{ item.modelApiTypeName }}
@@ -956,24 +967,49 @@ onMounted(() => { color: #606266; line-height: 1.7; margin: 0 0 20px 0; + -webkit-box-orient: vertical; + min-height: 48px; /* 保持2行的高度 */ + text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - //overflow: hidden; - min-height: 48px; + line-clamp: 2; + overflow: hidden; + + /* 添加过渡效果 */ + transition: all 0.3s ease; + max-height: 3.4em; /* 2行高度 (1.7 * 2 = 3.4em) */ &.placeholder { color: #c0c4cc; font-family: 'Monaco', 'Menlo', monospace; font-size: 12px; } + + /* 悬停时展开 */ + &:hover { + -webkit-line-clamp: unset; /* 取消行数限制 */ + line-clamp: unset; + max-height: none; /* 取消最大高度限制 */ + overflow: visible; /* 显示全部内容 */ + + /* 可选:添加背景或边框突出显示 */ + background-color: #f9f9f9; + //padding: 8px 12px; + border-radius: 4px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + //margin-bottom: 20px; /* 保持原有间距 */ + + /* 如果是绝对定位的父容器,可以增加z-index */ + z-index: 10; + position: relative; + } } .model-footer { display: flex; justify-content: space-between; align-items: center; - gap: 16px; + gap: 6px; padding-top: 16px; border-top: 1px solid #f0f0f0; @@ -988,7 +1024,7 @@ onMounted(() => { display: flex; align-items: center; gap: 8px; - padding: 6px 12px; + padding: 6px 6px; background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%); border-radius: 8px; white-space: nowrap; @@ -1054,7 +1090,6 @@ onMounted(() => { } } - // 流光溢彩动画 @keyframes gradientFlow { 0% {