PublicDashboards: A unique page for public dashboards (#60744)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
juanicabanas
2023-01-10 14:50:37 -03:00
committed by GitHub
parent d19d8c6625
commit 2505f112f5
10 changed files with 334 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
import { css } from '@emotion/css';
import React from 'react';
import { GrafanaTheme2, colorManipulator } from '@grafana/data';
import { GrafanaTheme2 } from '@grafana/data';
import { useStyles2 } from '@grafana/ui';
export interface PublicDashboardFooterCfg {
@@ -38,14 +38,10 @@ export let getPublicDashboardFooterConfig = (): PublicDashboardFooterCfg => ({
const getStyles = (theme: GrafanaTheme2) => ({
footer: css`
position: absolute;
display: flex;
justify-content: end;
height: 30px;
bottom: 0;
width: 100%;
background-color: ${colorManipulator.alpha(theme.colors.background.canvas, 0.7)};
text-align: right;
font-size: ${theme.typography.body.fontSize};
z-index: ${theme.zIndex.navbarFixed};
padding: ${theme.spacing(0, 1, 0, 1)};
`,
logoText: css`
margin-right: ${theme.spacing(1)};