Browse Source

fix: style of input recovery code in 2fa settings

Jacky 11 months ago
parent
commit
a48fde8be3
1 changed files with 4 additions and 5 deletions
  1. 4 5
      app/src/views/preference/components/TOTP.vue

+ 4 - 5
app/src/views/preference/components/TOTP.vue

@@ -156,10 +156,7 @@ function reset2FA() {
     >
     >
       <p>{{ $gettext('Input the recovery code:') }}</p>
       <p>{{ $gettext('Input the recovery code:') }}</p>
       <AInputGroup compact>
       <AInputGroup compact>
-        <AInput
-          v-model:value="inputRecoveryCode"
-          style="width: calc(100% - 92px)"
-        />
+        <AInput v-model:value="inputRecoveryCode" />
         <AButton
         <AButton
           type="primary"
           type="primary"
           @click="reset2FA"
           @click="reset2FA"
@@ -172,5 +169,7 @@ function reset2FA() {
 </template>
 </template>
 
 
 <style scoped lang="less">
 <style scoped lang="less">
-
+:deep(.ant-input-group.ant-input-group-compact) {
+  display: flex;
+}
 </style>
 </style>