Skip to content

Commit 81e9c59

Browse files
committed
style: improve layout and styling of QR code components and login card
--bug=1059979 --user=王孝刚 【应用】应用开启登录认证,企业微信的登录二维码没有左右居中 https://www.tapd.cn/62980211/s/1749294
1 parent 1d53b76 commit 81e9c59

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

ui/src/views/chat/user-login/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<PasswordAuth></PasswordAuth>
4949
</el-card>
5050

51-
<el-card class="login-card" v-else>
51+
<el-card class="login-card" v-else style="--el-card-padding: 0">
5252
<h2 class="mb-24" v-if="!showQrCodeTab && (loginMode === 'LDAP' || loginMode === 'LOCAL')">
5353
{{ loginMode == 'LOCAL' ? $t('views.login.title') : loginMode }}
5454
</h2>

ui/src/views/chat/user-login/scanCompinents/QrCodeTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<el-tabs v-model="activeKey" @tab-change="selectTab">
33
<template v-for="item in tabs" :key="item.key">
44
<el-tab-pane :label="item.value" :name="item.key">
5-
<div class="text-center mt-16" v-if="item.key === activeKey">
5+
<div class="text-center" v-if="item.key === activeKey">
66
<component
77
:is="defineAsyncComponent(() => import(`./${item.key}QrCode.vue`))"
88
:config="config"

ui/src/views/chat/user-login/scanCompinents/wecomQrCode.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div id="wecom-qr" class="wecom-qr" style="margin-left: 50px"></div>
2+
<div id="wecom-qr" class="wecom-qr flex"></div>
33
</template>
44

55
<script lang="ts" setup>
@@ -80,8 +80,10 @@ init()
8080
</script>
8181

8282
<style scoped lang="scss">
83-
.wecom-qr {
83+
#wecom-qr {
8484
margin-top: -20px;
8585
height: 331px;
86+
justify-content: center;
87+
8688
}
8789
</style>

ui/src/views/login/scanCompinents/wecomQrCode.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div id="wecom-qr" class="wecom-qr" style="margin-left: 50px"></div>
2+
<div id="wecom-qr" class="wecom-qr flex"></div>
33
</template>
44

55
<script lang="ts" setup>
@@ -72,8 +72,10 @@ init()
7272
</script>
7373

7474
<style scoped lang="scss">
75-
.wecom-qr {
75+
#wecom-qr {
7676
margin-top: -20px;
7777
height: 331px;
78+
justify-content: center;
79+
7880
}
7981
</style>

0 commit comments

Comments
 (0)