Browse Source

fix: 修复bug

jinx 1 year ago
parent
commit
1768d15e44
4 changed files with 20 additions and 13 deletions
  1. 14 7
      src/components/header/index.vue
  2. 2 2
      src/locales/en.json
  3. 2 2
      src/locales/ja.json
  4. 2 2
      src/locales/zh.json

+ 14 - 7
src/components/header/index.vue

@@ -35,8 +35,11 @@
         </div>
         </div>
     </header>
     </header>
     <footer v-if="props.showAdjust">
     <footer v-if="props.showAdjust">
-        <h4>{{ $t('header.adhustText1') }}</h4>
-        <div>{{ $t('header.adhustText2') }}</div>
+        <div>
+            <h4>{{ $t('header.adjustText1') }}</h4>
+            <div>{{ $t('header.adjustText2') }}</div>
+        </div>
+
         <div class="points">
         <div class="points">
             <button @click="onSetP1" :class="{ active: points.p1 }">{{ points.p1 ? `${t('header.reset')}P1` : `${t('header.setting')}P1` }}</button>
             <button @click="onSetP1" :class="{ active: points.p1 }">{{ points.p1 ? `${t('header.reset')}P1` : `${t('header.setting')}P1` }}</button>
             <button @click="onSetP2" :class="{ active: points.p2 }">{{ points.p2 ? `${t('header.reset')}P2` : `${t('header.setting')}P2` }}</button>
             <button @click="onSetP2" :class="{ active: points.p2 }">{{ points.p2 ? `${t('header.reset')}P2` : `${t('header.setting')}P2` }}</button>
@@ -247,12 +250,15 @@ footer {
     left: 0;
     left: 0;
     bottom: 0;
     bottom: 0;
     width: 100%;
     width: 100%;
-    height: 92px;
+    min-height: 92px;
     color: rgba(255, 255, 255, 0.8);
     color: rgba(255, 255, 255, 0.8);
     backdrop-filter: blur(4px);
     backdrop-filter: blur(4px);
     background: rgba(27, 27, 28, 0.8);
     background: rgba(27, 27, 28, 0.8);
     z-index: 99999;
     z-index: 99999;
     padding: 20px 24px;
     padding: 20px 24px;
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
     h4 {
     h4 {
         font-size: 20px;
         font-size: 20px;
         margin: 0;
         margin: 0;
@@ -261,12 +267,13 @@ footer {
         margin-bottom: 14px;
         margin-bottom: 14px;
     }
     }
     .points {
     .points {
-        position: absolute;
-        top: 20px;
-        right: 0;
-        bottom: 20px;
+        // position: absolute;
+        // top: 20px;
+        // right: 0;
+        // bottom: 20px;
         display: flex;
         display: flex;
         align-items: center;
         align-items: center;
+        margin-left: 10px;
         button {
         button {
             cursor: pointer;
             cursor: pointer;
             outline: none;
             outline: none;

+ 2 - 2
src/locales/en.json

@@ -23,8 +23,8 @@
     "reset": "Reset",
     "reset": "Reset",
     "userInfo": "User Info",
     "userInfo": "User Info",
     "loginout": "Loginout",
     "loginout": "Loginout",
-    "adhustText1": "Setting the associated location for a scene",
-    "adhustText2": "Please select the location, make sure that the scenes in the left and right views are in the same location, and then click the button on the right to set it as the associated location.",
+    "adjustText1": "Setting the associated location for a scene",
+    "adjustText2": "Please select the location, make sure that the scenes in the left and right views are in the same location, and then click the button on the right to set it as the associated location.",
     "userLogin": "User login",
     "userLogin": "User login",
     "rememberPassword": "Remember passwords",
     "rememberPassword": "Remember passwords",
     "forgetPassword": "Forgotten password",
     "forgetPassword": "Forgotten password",

+ 2 - 2
src/locales/ja.json

@@ -23,8 +23,8 @@
     "reset": "リセット",
     "reset": "リセット",
     "userInfo": "個人情報",
     "userInfo": "個人情報",
     "loginout": "ログアウト",
     "loginout": "ログアウト",
-    "adhustText1": "関連スポットを設置する",
-    "adhustText2": "左と右のスクリーンを対照しながら、位置が一致かないかを確認してから、右ボタンをクリックして関連スポットを選択します。",
+    "adjustText1": "関連スポットを設置する",
+    "adjustText2": "左と右のスクリーンを対照しながら、位置が一致かないかを確認してから、右ボタンをクリックして関連スポットを選択します。",
     "userLogin": "ログイン",
     "userLogin": "ログイン",
     "rememberPassword": "パスワードを保存",
     "rememberPassword": "パスワードを保存",
     "forgetPassword": "パスワードを忘れた",
     "forgetPassword": "パスワードを忘れた",

+ 2 - 2
src/locales/zh.json

@@ -23,8 +23,8 @@
     "reset": "重设",
     "reset": "重设",
     "userInfo": "个人信息",
     "userInfo": "个人信息",
     "loginout": "退出登录",
     "loginout": "退出登录",
-    "adhustText1": "为场景设置关联位置",
-    "adhustText2": "请选择位置,确认左右视图中的场景在同一位置后,单击右侧按钮将其设为关联位置。",
+    "adjustText1": "为场景设置关联位置",
+    "adjustText2": "请选择位置,确认左右视图中的场景在同一位置后,单击右侧按钮将其设为关联位置。",
     "userLogin": "用户登录",
     "userLogin": "用户登录",
     "rememberPassword": "记住密码",
     "rememberPassword": "记住密码",
     "forgetPassword": "忘记密码",
     "forgetPassword": "忘记密码",