lex-xin 4 months ago
parent
commit
cbab34989e

+ 3 - 3
src/businessComponents/globalTools/globalTools.vue

@@ -199,7 +199,7 @@ onUnmounted(() => {
    .iconTools,
    .expendTools {
       position: fixed;
-      right: 0;
+      right: -2px;
       top: 0;
       transform: translateY(var(--toolTranslateY));
       // margin-top: -29px;
@@ -214,8 +214,8 @@ onUnmounted(() => {
       // transition: transform 0.2s ease;
       img {
          padding: 8px 15px;
-         width: 36px;
-         height: 36px;
+         width: 34px;
+         height: 34px;
          box-sizing: content-box;
          -moz-user-select: none;
          /* 火狐浏览器 */

+ 3 - 3
src/components/ellipsisScroll/ellipsisScroll.vue

@@ -10,7 +10,7 @@
 </template>
 
 <script setup lang="ts">
-import { ref, onMounted, onUnmounted, nextTick, watch } from "vue"
+import { ref, onMounted, onUnmounted, nextTick } from "vue"
 
 const props = defineProps<{
    title: string
@@ -41,7 +41,7 @@ let widthCalc = 0
 function handleIsScroll(e: MouseEvent) {
    const target = e.target as HTMLElement
    widthCalc = target.scrollWidth - target.clientWidth
-   if (widthCalc > 0) {
+   if (widthCalc >= 0) {
       isScroll.value = true
    } else {
       isScroll.value = false
@@ -49,7 +49,7 @@ function handleIsScroll(e: MouseEvent) {
 }
 function handleAutoScroll(target: any) {
    widthCalc = target.scrollWidth - target.clientWidth
-   if (widthCalc > 0) {
+   if (widthCalc >= 0) {
       isScroll.value = true
    } else {
       isScroll.value = false

+ 4 - 0
src/views/coursewarePlay/coursewarePlay.vue

@@ -392,13 +392,17 @@ function preventDefaultContextmenu(event: MouseEvent) {
 }
 function handleKeydown(e: KeyboardEvent) {
    const key = e.key
+
    if (key === " ") {
+      closeAllModalFrame()
       // 视频类型的时候才触发
       fileType.value === "VIDEO" && handleVideoPlay()
    } else if (key === "ArrowLeft") {
+      closeAllModalFrame()
       // 视频类型的时候才触发
       fileType.value === "VIDEO" && handleVideoSpeedCurrentTime("slow")
    } else if (key === "ArrowRight") {
+      closeAllModalFrame()
       // 视频类型的时候才触发
       fileType.value === "VIDEO" && handleVideoSpeedCurrentTime("fast")
    } else if (key === "ArrowDown") {

+ 4 - 4
src/views/coursewarePlay/videoPlay/videoPlay.vue

@@ -393,9 +393,9 @@ defineExpose({
             display: flex;
             & > img {
                cursor: pointer;
-               width: 48px;
-               height: 48px;
-               margin-right: 30px;
+               width: 36px;
+               height: 36px;
+               margin-right: 18px;
                padding: 6px;
                box-sizing: content-box;
                &:hover {
@@ -404,7 +404,7 @@ defineExpose({
                }
             }
             .loopImg {
-               width: 56px;
+               width: 42px;
             }
             & > :deep(.palySpeedPopover.el-popover.el-popper) {
                min-width: initial;

+ 3 - 0
vue.config.js

@@ -19,6 +19,9 @@ module.exports = defineConfig({
                         if (file.includes("coursewarePlay")) {
                            return true
                         }
+                        if (file.includes("globalTools")) {
+                           return true
+                        }
                         if (file.includes("normalize")) {
                            return true
                         }