Make OAuthWidget work for prompt page.

This commit is contained in:
Yang Luo
2021-06-20 02:02:08 +08:00
parent 0f69f4f07c
commit e0b6270f50
3 changed files with 88 additions and 15 deletions

View File

@ -130,7 +130,7 @@ class OAuthWidget extends React.Component {
return (
<Row key={provider.name} style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={3}>
<Col style={{marginTop: '5px'}} span={this.props.labelSpan}>
{
Setting.getProviderLogo(provider)
}
@ -140,9 +140,9 @@ class OAuthWidget extends React.Component {
}
</span>
</Col>
<Col span={21} >
<Col span={24 - this.props.labelSpan} >
<img style={{marginRight: '10px'}} width={30} height={30} src={avatarUrl} alt={name} />
<span style={{width: '300px', display: "inline-block"}}>
<span style={{width: this.props.labelSpan === 3 ? '300px' : '130px', display: "inline-block"}}>
{
linkedValue === "" ? (
"(empty)"