fix: UI bug after switching to English (#570)

This commit is contained in:
Nekotoxin
2022-03-15 21:02:54 +08:00
committed by GitHub
parent 9f7924a6e0
commit e5ff49f7a7

View File

@ -553,22 +553,22 @@ class App extends Component {
</Link> </Link>
) )
} }
<Menu <div>
// theme="dark" <Menu
mode={(Setting.isMobile() && this.isStartPages()) ? "inline" : "horizontal"} // theme="dark"
selectedKeys={[`${this.state.selectedMenuKey}`]} mode={(Setting.isMobile() && this.isStartPages()) ? "inline" : "horizontal"}
style={{lineHeight: '64px', width: '100%', position: 'absolute'}} selectedKeys={[`${this.state.selectedMenuKey}`]}
> style={{lineHeight: '64px', width: '80%', position: 'absolute'}}
>
{
this.renderMenu()
}
</Menu>
{ {
this.renderMenu() this.renderAccount()
} }
<div style = {{float: 'right'}}> <SelectLanguageBox/>
{ </div>
this.renderAccount()
}
<SelectLanguageBox/>
</div>
</Menu>
</Header> </Header>
<Layout style={{backgroundColor: "#f5f5f5", alignItems: 'stretch'}}> <Layout style={{backgroundColor: "#f5f5f5", alignItems: 'stretch'}}>
<Card className="content-warp-card"> <Card className="content-warp-card">