TopNav: Fix right padding on signin link (#62537)

* TopNav: Fix right padding on signin link

* revert yarn lock

* Update package.json

* Update
This commit is contained in:
Torkel Ödegaard 2023-01-31 17:22:36 +01:00 committed by GitHub
parent 1dc986f9e1
commit c0f0c3d485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import { css } from '@emotion/css';
import React from 'react';
import { useLocation } from 'react-router-dom';
import { locationUtil } from '@grafana/data';
import { GrafanaTheme2, locationUtil } from '@grafana/data';
import { useStyles2 } from '@grafana/ui';
export function SignInLink() {
@ -17,9 +17,10 @@ export function SignInLink() {
);
}
const getStyles = () => {
const getStyles = (theme: GrafanaTheme2) => {
return {
link: css({
paddingRight: theme.spacing(1),
whiteSpace: 'nowrap',
'&:hover': {
textDecoration: 'underline',