Plugins: Fix width for README pages with tables (#66872)

This commit is contained in:
Andres Martinez Gotor
2023-04-21 10:02:10 +02:00
committed by GitHub
parent 1f193f1bad
commit 29aaf429ad

View File

@@ -119,5 +119,23 @@ export const getStyles = (theme: GrafanaTheme2) => ({
text-decoration: underline;
}
}
table {
table-layout: fixed;
width: 100%;
td,
th {
overflow-x: auto;
padding: ${theme.spacing(0.5)} ${theme.spacing(1)};
}
table,
th,
td {
border: 1px solid ${theme.colors.border.medium};
border-collapse: collapse;
}
}
`,
});