Parcourir la source

feat.智能批改美化

xiaoyu il y a 2 ans
Parent
commit
01c0654bd1
2 fichiers modifiés avec 15 ajouts et 30 suppressions
  1. 15 12
      src/views/Home/component/Silder/index.scss
  2. 0 18
      vite.config.js

+ 15 - 12
src/views/Home/component/Silder/index.scss

@@ -60,20 +60,24 @@
 
   .capacity-item {
     width: 95%;
-    height: 100%;
+    height: 50vh;
     background-color: #d9d9d9;
     border-radius: 10px;
-  }
 
-  .remark {
-    width: 100%;
-    height: 100%;
-    border-radius: 10px;
-    overflow-y: auto; /* 添加垂直滚动 */
-    white-space: pre-wrap; /* 保留换行和空格,允许自动换行 */
-    background-color: #f0f0f0;
-    padding: 10px;
+    .remark {
+      width: 100%;
+      height: 95%;
+      //max-height: 70vh;
+      border-radius: 10px;
+      overflow-y: auto; /* 添加垂直滚动 */
+      //overflow: scroll;
+      white-space: pre-wrap; /* 保留换行和空格,允许自动换行 */
+      //background-color: #f0f0f0;
+      padding: 10px;
+      //background-color: red;
+    }
   }
+
 }
 
 
@@ -91,5 +95,4 @@
 
 .edit-text {
   margin-left: 10px;
-}
-
+}

+ 0 - 18
vite.config.js

@@ -1,18 +0,0 @@
-import { fileURLToPath, URL } from 'node:url';
-import { defineConfig } from 'vite';
-import vue from '@vitejs/plugin-vue';
-// https://vitejs.dev/config/
-export default defineConfig({
-    plugins: [
-        vue(),
-    ],
-    resolve: {
-        alias: {
-            '@': fileURLToPath(new URL('./src', import.meta.url))
-        }
-    },
-    server: {
-        host: '127.0.0.1',
-        port: 4000
-    }
-});