Преглед изворни кода

fix: style of input recovery code in 2fa settings

Jacky пре 11 месеци
родитељ
комит
a48fde8be3
1 измењених фајлова са 4 додато и 5 уклоњено
  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>
       <AInputGroup compact>
-        <AInput
-          v-model:value="inputRecoveryCode"
-          style="width: calc(100% - 92px)"
-        />
+        <AInput v-model:value="inputRecoveryCode" />
         <AButton
           type="primary"
           @click="reset2FA"
@@ -172,5 +169,7 @@ function reset2FA() {
 </template>
 
 <style scoped lang="less">
-
+:deep(.ant-input-group.ant-input-group-compact) {
+  display: flex;
+}
 </style>