mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
Login page: Fix button width (#86680)
* Fix login buttons width * Login page: Fix button width * Add todo
This commit is contained in:
parent
7caa30bc2e
commit
cad9e23e54
@ -149,24 +149,27 @@ export const LoginServiceButtons = () => {
|
||||
|
||||
if (hasServices) {
|
||||
return (
|
||||
<Stack direction="column">
|
||||
<LoginDivider />
|
||||
{Object.entries(enabledServices).map(([key, service]) => {
|
||||
const serviceName = service.name;
|
||||
return (
|
||||
<LinkButton
|
||||
key={key}
|
||||
className={getButtonStyleFor(service, styles, theme)}
|
||||
href={`login/${service.hrefName ? service.hrefName : key}`}
|
||||
target="_self"
|
||||
fullWidth
|
||||
>
|
||||
<Icon className={styles.buttonIcon} name={service.icon} />
|
||||
<Trans i18nKey="login.services.sing-in-with-prefix">Sign in with {{ serviceName }}</Trans>
|
||||
</LinkButton>
|
||||
);
|
||||
})}
|
||||
</Stack>
|
||||
// TODO: Remove extra div when Stack supports width
|
||||
<div style={{ width: '100%' }}>
|
||||
<Stack direction={'column'}>
|
||||
<LoginDivider />
|
||||
{Object.entries(enabledServices).map(([key, service]) => {
|
||||
const serviceName = service.name;
|
||||
return (
|
||||
<LinkButton
|
||||
key={key}
|
||||
className={getButtonStyleFor(service, styles, theme)}
|
||||
href={`login/${service.hrefName ? service.hrefName : key}`}
|
||||
target="_self"
|
||||
fullWidth
|
||||
>
|
||||
<Icon className={styles.buttonIcon} name={service.icon} />
|
||||
<Trans i18nKey="login.services.sing-in-with-prefix">Sign in with {{ serviceName }}</Trans>
|
||||
</LinkButton>
|
||||
);
|
||||
})}
|
||||
</Stack>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user