Prechádzať zdrojové kódy

修复不能滚动的问题

lex-xin 3 mesiacov pred
rodič
commit
3789c74868

+ 7 - 4
src/views/content-information/content-knowledge/index.module.less

@@ -230,7 +230,7 @@
   border-radius: 16px;
   // height: 100%;
   z-index: 1;
-  overflow: hidden;
+  // overflow: hidden;
   padding: 54px 0 27px 27px;
   position: relative;
 
@@ -252,7 +252,10 @@
 
   :global {
     .n-spin-container {
-      overflow-y: auto;
+      // overflow-y: auto;
+      height: 100%;
+    }
+    .n-spin-content {
       height: 100%;
     }
 
@@ -269,8 +272,8 @@
 
   .musicContent {
     flex: 1;
-    // overflow-y: auto;
-    // height: 100%;
+    overflow-y: auto;
+    height: 100%;
     // padding: 27px;
     padding-right: 27px;
     user-select: text;

+ 7 - 5
src/views/prepare-lessons/model/source-knowledge/index.module.less

@@ -224,7 +224,7 @@
   border-radius: 16px;
   // height: 100%;
   z-index: 1;
-  overflow: hidden;
+  // overflow: hidden;
   padding: 54px 0 27px 27px;
 
   &::-webkit-scrollbar {
@@ -245,10 +245,12 @@
 
   :global {
     .n-spin-container {
-      overflow-y: auto;
+      // overflow-y: auto;
+      height: 100%;
+    }
+    .n-spin-content {
       height: 100%;
     }
-
   }
 
   .musicTitle {
@@ -262,8 +264,8 @@
 
   .musicContent {
     flex: 1;
-    // overflow-y: auto;
-    // height: 100%;
+    overflow-y: auto;
+    height: 100%;
     // padding: 27px;
     padding-right: 27px;
     position: relative;