Browse Source

fix:播放按钮

liushengqiang 2 năm trước cách đây
mục cha
commit
8859826f1b

+ 9 - 0
src/page-instrument/header-top/index.module.less

@@ -110,6 +110,11 @@
             height: 100%;
         }
     }
+    &.playButton{
+        left: 32px !important;
+        right: auto !important;
+    }
+    
 }
 
 .resetBtn {
@@ -122,6 +127,10 @@
         width: 36px;
         height: 36px;
     }
+    &.pauseButton{
+        left: 88px !important;
+        right: auto !important;
+    }
 }
 
 :global {

+ 2 - 2
src/page-instrument/header-top/index.tsx

@@ -396,7 +396,7 @@ export default defineComponent({
 				{/* 播放按钮 */}
 				<div
 					style={{ display: playBtn.value.display ? "" : "none" }}
-					class={[styles.btn, styles.playBtn, playBtn.value.disabled && styles.disabled]}
+					class={[styles.btn, styles.playBtn, playBtn.value.disabled && styles.disabled, state.platform === IPlatform.PC && styles.playButton]}
 					id="tips-step-5"
 					onClick={() => togglePlay()}
 				>
@@ -425,7 +425,7 @@ export default defineComponent({
 				{/* 重播按钮 */}
 				<div
 					style={{ display: resetBtn.value.display ? "" : "none" }}
-					class={[styles.btn, styles.resetBtn, resetBtn.value.disabled && styles.disabled]}
+					class={[styles.btn, styles.resetBtn, resetBtn.value.disabled && styles.disabled, state.platform === IPlatform.PC && styles.pauseButton]}
 					id="tips-step-7"
 					onClick={() => handleResetPlay()}
 				>