Skip to content

Commit

Permalink
fix: fix iam plugin not fit in light theme in login view
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Oct 23, 2023
1 parent bdd240a commit 86ed84a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion client/shared/i18n/langs/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@
"kb76d94e0": "Refresh",
"kb7a57f24": "Plugin Registry Service",
"kb8021af2": "Disable create converse from group",
"kb8185132": "Or",
"kb86bd9c9": "View Panel",
"kb8ec7062": "Email verification passed",
"kb96b79c5": "Allow management of invitation links",
Expand Down
1 change: 0 additions & 1 deletion client/shared/i18n/langs/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@
"kb76d94e0": "刷新",
"kb7a57f24": "插件中心服务",
"kb8021af2": "禁止在群组发起私信",
"kb8185132": "",
"kb86bd9c9": "查看面板",
"kb8ec7062": "邮箱验证通过",
"kb96b79c5": "允许管理邀请链接",
Expand Down
18 changes: 0 additions & 18 deletions client/web/src/routes/Entry/LoginView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Icon } from 'tailchat-design';
import { Divider } from 'antd';
import {
isValidStr,
loginWithEmail,
Expand All @@ -23,23 +22,6 @@ import { SecondaryBtn } from './components/SecondaryBtn';
import { PrimaryBtn } from './components/PrimaryBtn';
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';

/**
* 登录视图
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const IAMAction: React.FC = React.memo(() => {
if (Array.isArray(strategies) && strategies.length > 0) {
return (
<div>
<Divider>{Translate.iamLogin}</Divider>
<Divider style={{ color: 'white' }}>{Translate.iamLogin}</Divider>
{isMobile ? (
<div
style={{ textAlign: 'center', opacity: 0.8, fontSize: '0.75rem' }}
Expand Down

0 comments on commit 86ed84a

Please sign in to comment.