fix: fix iam plugin not fit in light theme in login view

pull/147/merge
moonrailgun 2 years ago
parent bdd240ab1a
commit 86ed84a83d

@ -299,7 +299,6 @@
"kb76d94e0": "Refresh", "kb76d94e0": "Refresh",
"kb7a57f24": "Plugin Registry Service", "kb7a57f24": "Plugin Registry Service",
"kb8021af2": "Disable create converse from group", "kb8021af2": "Disable create converse from group",
"kb8185132": "Or",
"kb86bd9c9": "View Panel", "kb86bd9c9": "View Panel",
"kb8ec7062": "Email verification passed", "kb8ec7062": "Email verification passed",
"kb96b79c5": "Allow management of invitation links", "kb96b79c5": "Allow management of invitation links",

@ -299,7 +299,6 @@
"kb76d94e0": "刷新", "kb76d94e0": "刷新",
"kb7a57f24": "插件中心服务", "kb7a57f24": "插件中心服务",
"kb8021af2": "禁止在群组发起私信", "kb8021af2": "禁止在群组发起私信",
"kb8185132": "或",
"kb86bd9c9": "查看面板", "kb86bd9c9": "查看面板",
"kb8ec7062": "邮箱验证通过", "kb8ec7062": "邮箱验证通过",
"kb96b79c5": "允许管理邀请链接", "kb96b79c5": "允许管理邀请链接",

@ -1,5 +1,4 @@
import { Icon } from 'tailchat-design'; import { Icon } from 'tailchat-design';
import { Divider } from 'antd';
import { import {
isValidStr, isValidStr,
loginWithEmail, loginWithEmail,
@ -23,23 +22,6 @@ import { SecondaryBtn } from './components/SecondaryBtn';
import { PrimaryBtn } from './components/PrimaryBtn'; import { PrimaryBtn } from './components/PrimaryBtn';
import { pluginLoginAction } from '@/plugin/common'; import { pluginLoginAction } from '@/plugin/common';
/**
* TODO:
*
*/
const OAuthLoginView: React.FC = React.memo(() => {
return (
<>
<Divider>{t('或')}</Divider>
<div className="bg-gray-400 w-1/3 px-4 py-1 text-3xl text-center rounded-md cursor-pointer shadow-md">
<Icon className="mx-auto" icon="mdi:github" />
</div>
</>
);
});
OAuthLoginView.displayName = 'OAuthLoginView';
/** /**
* *
*/ */

@ -62,7 +62,7 @@ export const IAMAction: React.FC = React.memo(() => {
if (Array.isArray(strategies) && strategies.length > 0) { if (Array.isArray(strategies) && strategies.length > 0) {
return ( return (
<div> <div>
<Divider>{Translate.iamLogin}</Divider> <Divider style={{ color: 'white' }}>{Translate.iamLogin}</Divider>
{isMobile ? ( {isMobile ? (
<div <div
style={{ textAlign: 'center', opacity: 0.8, fontSize: '0.75rem' }} style={{ textAlign: 'center', opacity: 0.8, fontSize: '0.75rem' }}

Loading…
Cancel
Save