浏览代码

fix: 修复bug

jinx 1 年之前
父节点
当前提交
1768d15e44
共有 4 个文件被更改,包括 20 次插入13 次删除
  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>
     </header>
     <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">
             <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>
@@ -247,12 +250,15 @@ footer {
     left: 0;
     bottom: 0;
     width: 100%;
-    height: 92px;
+    min-height: 92px;
     color: rgba(255, 255, 255, 0.8);
     backdrop-filter: blur(4px);
     background: rgba(27, 27, 28, 0.8);
     z-index: 99999;
     padding: 20px 24px;
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
     h4 {
         font-size: 20px;
         margin: 0;
@@ -261,12 +267,13 @@ footer {
         margin-bottom: 14px;
     }
     .points {
-        position: absolute;
-        top: 20px;
-        right: 0;
-        bottom: 20px;
+        // position: absolute;
+        // top: 20px;
+        // right: 0;
+        // bottom: 20px;
         display: flex;
         align-items: center;
+        margin-left: 10px;
         button {
             cursor: pointer;
             outline: none;

+ 2 - 2
src/locales/en.json

@@ -23,8 +23,8 @@
     "reset": "Reset",
     "userInfo": "User Info",
     "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",
     "rememberPassword": "Remember passwords",
     "forgetPassword": "Forgotten password",

+ 2 - 2
src/locales/ja.json

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

+ 2 - 2
src/locales/zh.json

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