浏览代码

Merge branch 'single' of https://git.zyuas.com/LLM/chat-client-web into single

* 'single' of https://git.zyuas.com/LLM/chat-client-web:
  尝试提问的内容可以滚动
  适配手机端
  修改logo
Ryuiso 6 月之前
父节点
当前提交
d9679b7bed
共有 2 个文件被更改,包括 12 次插入5 次删除
  1. 2 2
      app/components/chat.tsx
  2. 10 3
      app/components/deepSeekHome.scss

+ 2 - 2
app/components/chat.tsx

@@ -660,7 +660,7 @@ export function ChatActions(props: {
     <div className={styles["chat-input-actions"]}>
       {
         props.sendStatus &&
-        <div style={{ color: '#8096ca', fontSize: 13 }}>
+        <div style={{ color: '#8096ca', fontSize: 13, overflowX: 'auto' }}>
           <div>
             你还可以尝试提问:
           </div>
@@ -672,7 +672,7 @@ export function ChatActions(props: {
                 <Skeleton.Button size="small" active={true} />
               </Space>
               :
-              <div style={{ display: 'flex', marginTop: 10, flexWrap: 'wrap' }}>
+              <div style={{ display: 'flex', margin: '10px 0', overflowX: 'auto' }}>
                 {
                   guessList.map((item, index) => {
                     return (

+ 10 - 3
app/components/deepSeekHome.scss

@@ -1,7 +1,12 @@
 .deekSeek {
   width: 100%;
-  height: 100vh;
+  /* 使用 fill-available 确保兼容性 */
+  height: -webkit-fill-available;
+  height: 100dvh;
+  /* 新的动态视口单位,推荐使用 */
   background: linear-gradient(90.52deg, rgba(24, 126, 255, 1) 1.54%, rgba(23, 66, 255, 1) 99.26%);
+  padding-bottom: env(safe-area-inset-bottom);
+  /* 适配底部安全区域 */
 
   &-header {
     width: 100%;
@@ -17,7 +22,7 @@
 
   &-content {
     width: 100%;
-    height: calc(100vh - 60px);
+    height: calc(100% - 80px - env(safe-area-inset-bottom));
     display: flex;
     justify-content: center;
     align-items: center;
@@ -29,16 +34,18 @@
       margin-bottom: 5px;
 
       img {
-        width: 50%;
+        width: 200px;
       }
     }
 
     &-title-sm {
       font-size: 20px;
       color: #FFFFFF;
+
       @media (max-width: 768px) {
         font-size: 16px;
       }
+
       @media (max-width: 480px) {
         font-size: 14px;
       }