VizLegendTable: fixes column spacing to span to the right side (#35045)

* VizLegendTable: fixes column spacing to span to the right side

* reverted text alignment to right

* implemented a more readable solution for tabble legend spacing
This commit is contained in:
Uchechukwu Obasi 2021-06-01 16:47:14 +01:00 committed by GitHub
parent aa7dbd7a69
commit 4d574bb8aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,9 @@ const getStyles = (theme: GrafanaTheme) => ({
table: css`
width: 100%;
margin-left: ${theme.spacing.sm};
th:first-child {
width: 100%;
}
`,
header: css`
color: ${theme.colors.textBlue};
@ -103,6 +106,7 @@ const getStyles = (theme: GrafanaTheme) => ({
border-bottom: 1px solid ${theme.colors.border1};
padding: ${theme.spacing.xxs} ${theme.spacing.sm};
text-align: right;
white-space: nowrap;
`,
headerSortable: css`
cursor: pointer;