mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -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) {
|
if (hasServices) {
|
||||||
return (
|
return (
|
||||||
<Stack direction="column">
|
// TODO: Remove extra div when Stack supports width
|
||||||
<LoginDivider />
|
<div style={{ width: '100%' }}>
|
||||||
{Object.entries(enabledServices).map(([key, service]) => {
|
<Stack direction={'column'}>
|
||||||
const serviceName = service.name;
|
<LoginDivider />
|
||||||
return (
|
{Object.entries(enabledServices).map(([key, service]) => {
|
||||||
<LinkButton
|
const serviceName = service.name;
|
||||||
key={key}
|
return (
|
||||||
className={getButtonStyleFor(service, styles, theme)}
|
<LinkButton
|
||||||
href={`login/${service.hrefName ? service.hrefName : key}`}
|
key={key}
|
||||||
target="_self"
|
className={getButtonStyleFor(service, styles, theme)}
|
||||||
fullWidth
|
href={`login/${service.hrefName ? service.hrefName : key}`}
|
||||||
>
|
target="_self"
|
||||||
<Icon className={styles.buttonIcon} name={service.icon} />
|
fullWidth
|
||||||
<Trans i18nKey="login.services.sing-in-with-prefix">Sign in with {{ serviceName }}</Trans>
|
>
|
||||||
</LinkButton>
|
<Icon className={styles.buttonIcon} name={service.icon} />
|
||||||
);
|
<Trans i18nKey="login.services.sing-in-with-prefix">Sign in with {{ serviceName }}</Trans>
|
||||||
})}
|
</LinkButton>
|
||||||
</Stack>
|
);
|
||||||
|
})}
|
||||||
|
</Stack>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user