Przeglądaj źródła

roomcode scss调整

wuzj 5 dni temu
rodzic
commit
132732c690

+ 7 - 5
src/components/RoomCode/index.vue

@@ -100,21 +100,23 @@ const handleCopy = () => {
 <style lang="scss">
 .room-code {
   text-align: center;
+  padding: $spacing-mini; // 保留卡片整体内边距
 
   &__title {
-    margin-bottom: 10px;
+    padding-top: $spacing-base; // 标题与顶部距离
+    margin-bottom: 0; // 移除下方 margin,改用 value 的 margin-top
   }
 
   &__value {
-    font-size: 24px;
-    font-weight: bold;
-    margin-bottom: 20px;
+    font-size: $font-size-xlarge;
+    font-weight: $font-weight-bold;
+    margin: $spacing-base 0 $spacing-base; // 简写:上、左右、下
   }
 
   &__actions {
     display: flex;
     justify-content: center;
-    gap: 10px;
+    gap: $spacing-base;
   }
 }
 

+ 1 - 1
src/pages/room/waiting/index.vue

@@ -926,7 +926,7 @@ export default {
   padding-bottom: $spacing-large * 4; // 为底部tabbar留出空间
   
   .room-header {
-    padding: 8px;
+    padding: $spacing-base;
     height: 45px;
     text-align: center;