浏览代码

fix 滚动条

Michael Wang 4 年之前
父节点
当前提交
c5f559c638

+ 1 - 1
src/features/library/inspect/MarkBoardInspect.vue

@@ -245,7 +245,7 @@ export default defineComponent({
   padding-left: 6px;
   padding-right: 6px;
   max-height: calc(100vh - 41px);
-  overflow: scroll;
+  overflow: auto;
 }
 .question {
   min-width: 100px;

+ 1 - 1
src/features/mark/CommonMarkBody.vue

@@ -453,7 +453,7 @@ export default defineComponent({
 <style scoped>
 .mark-body-container {
   height: calc(100vh - 41px);
-  overflow: scroll;
+  overflow: auto;
   background-size: 8px 8px;
   background-image: linear-gradient(to right, #e7e7e7 4px, transparent 4px),
     linear-gradient(to bottom, transparent 4px, #e7e7e7 4px);

+ 1 - 1
src/features/mark/MarkBoardMouse.vue

@@ -214,7 +214,7 @@ export default defineComponent({
   padding-left: 6px;
   padding-right: 6px;
   max-height: calc(100vh - 41px);
-  overflow: scroll;
+  overflow: auto;
   z-index: 1001;
 }
 .hide-board {

+ 3 - 3
src/features/mark/MarkBoardTrack.vue

@@ -72,7 +72,7 @@
           tw-gap-1
           tw-flex-wrap
           tw-justify-between
-          tw-overflow-scroll
+          tw-overflow-auto
           tw-content-start
         "
         style="min-height: 20% !important; max-height: 80% !important"
@@ -115,7 +115,7 @@
           tw-gap-1
           tw-flex-wrap
           tw-mt-5
-          tw-overflow-scroll
+          tw-overflow-auto
           tw-content-start
         "
         style="padding-bottom: 40px"
@@ -399,7 +399,7 @@ export default defineComponent({
   padding-left: 6px;
   padding-right: 6px;
   max-height: calc(100vh - 41px);
-  overflow: scroll;
+  overflow: auto;
   z-index: 1001;
 }
 .hide-board {

+ 10 - 3
src/features/student/inspect/MarkBoardInspect.vue

@@ -12,7 +12,10 @@
       <template v-for="(groupNumber, index) in groups" :key="index">
         <div class="tw-mb-4">
           <div
-            class="tw-flex tw-justify-between tw-place-items-center hover:tw-bg-gray-200"
+            class="
+              tw-flex tw-justify-between tw-place-items-center
+              hover:tw-bg-gray-200
+            "
             style="border-bottom: 1px solid grey"
             @mouseover="addFocusTrack(groupNumber, undefined, undefined)"
             @mouseleave="removeFocusTrack"
@@ -30,7 +33,11 @@
             <template v-for="(question, index) in questions" :key="index">
               <div
                 v-if="question.groupNumber === groupNumber"
-                class="question tw-flex tw-place-items-center tw-mb-1 tw-ml-2 hover:tw-bg-gray-200"
+                class="
+                  question
+                  tw-flex tw-place-items-center tw-mb-1 tw-ml-2
+                  hover:tw-bg-gray-200
+                "
                 @mouseover="
                   addFocusTrack(
                     undefined,
@@ -238,7 +245,7 @@ export default defineComponent({
   padding-left: 6px;
   padding-right: 6px;
   max-height: calc(100vh - 41px);
-  overflow: scroll;
+  overflow: auto;
 }
 .question {
   min-width: 100px;

+ 1 - 1
src/features/student/inspect/MarkBody.vue

@@ -172,7 +172,7 @@ export default defineComponent({
 <style scoped>
 .mark-body-container {
   height: calc(100vh - 41px);
-  overflow: scroll;
+  overflow: auto;
   background-size: 8px 8px;
   background-image: linear-gradient(to right, #e7e7e7 4px, transparent 4px),
     linear-gradient(to bottom, transparent 4px, #e7e7e7 4px);

+ 1 - 1
src/features/student/studentTrack/MarkBody.vue

@@ -172,7 +172,7 @@ export default defineComponent({
 <style scoped>
 .mark-body-container {
   height: calc(100vh - 41px);
-  overflow: scroll;
+  overflow: auto;
   background-size: 8px 8px;
   background-image: linear-gradient(to right, #e7e7e7 4px, transparent 4px),
     linear-gradient(to bottom, transparent 4px, #e7e7e7 4px);