Pārlūkot izejas kodu

修复首页样式

李富豪 5 mēneši atpakaļ
vecāks
revīzija
c3d130f78a

+ 1 - 1
app/components/DeekSeekHome.tsx

@@ -122,7 +122,7 @@ const DeekSeek: React.FC = () => {
                     <div className='deekSeek-content-title'>
                         <img src={jkxz.src} />
                     </div>
-                    <div className='deekSeek-content-title-sm' style={{ marginBottom: isMobileScreen ? 14 : 36 }}>
+                    <div className='deekSeek-content-title-sm' style={{ marginBottom: isMobileScreen ? 14 : 20 }}>
                         智能问答助手
                     </div>
                     <div className={isMobileScreen ? 'deekSeek-content-mobile' : 'deekSeek-content-pc'}>

+ 6 - 6
app/components/DeepSeekChat.tsx

@@ -1735,11 +1735,11 @@ function _Chat() {
                 <img
                   src={isDeepThink ? sdsk_selected.src : sdsk.src}
                   style={{
-                    width: 18,
-                    height: 18,
+                    width: 16,
+                    height: 16,
                   }}
                 />
-                <div style={{ marginLeft: 5 }}>
+                <div style={{ fontSize: 11, marginLeft: 5 }}>
                   深度思考 (R1)
                 </div>
               </div>
@@ -1769,11 +1769,11 @@ function _Chat() {
               <img
                 src={webSearch ? hlw_selected.src : hlw.src}
                 style={{
-                  width: 18,
-                  height: 18,
+                  width: 16,
+                  height: 16,
                 }}
               />
-              <div style={{ marginLeft: 5 }}>
+              <div style={{ fontSize: 11, marginLeft: 5 }}>
                 联网搜索
               </div>
             </div>

+ 3 - 2
app/components/deepSeekHome.scss

@@ -13,11 +13,12 @@
     align-items: center;
     overflow-x: auto;
     overflow-y: hidden;
+    box-sizing: border-box;
   }
 
   &-content {
     width: 100%;
-    height: calc(100vh - 60px);
+    height: calc(100% - 80px);
     display: flex;
     justify-content: center;
     align-items: center;
@@ -29,7 +30,7 @@
       margin-bottom: 5px;
 
       img {
-        width: 50%;
+        width: 200px;
       }
     }
 

+ 4 - 4
app/components/home.tsx

@@ -327,10 +327,10 @@ export function Home() {
   }
 
   useEffect(() => {
-    // const loginRes = null;
-    // if (loginRes) {
-    //   return localStorage.setItem('userInfo', JSON.stringify(loginRes));
-    // }
+    const loginRes = {};
+    if (loginRes) {
+      return localStorage.setItem('userInfo', JSON.stringify(loginRes));
+    }
     const originUrl = window.location.origin;
     const fullUrl = window.location.href;
     const urlParams = new URLSearchParams(new URL(fullUrl).search);