Skip to content

Commit

Permalink
fix: make homepage usage breakpoints smaller (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdubrock authored Sep 16, 2021
1 parent 129887e commit d157abe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/page/HomePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ test('shows usage', async () => {
await assertBigValue('Total checks', '1');
await assertBigValue('Total active series', '81');
await assertBigValue('Checks executions per month', '43,800');
await assertBigValue('Logs', '0.04GB');
await assertBigValue('Logs per month', '0.04GB');
});
22 changes: 11 additions & 11 deletions src/page/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
`,
usageGrid: css`
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, auto));
grid-template-columns: repeat(auto-fit, minmax(160px, auto));
grid-gap: ${theme.spacing(1)};
`,
usageHeader: css`
Expand Down Expand Up @@ -167,14 +167,14 @@ const HomePage = () => {
</DisplayCard>
</div>
<DisplayCard className={cx(styles.card, styles.usageGrid, styles.marginBottom)}>
<h2 className={styles.usageHeader}>Your Grafana Cloud synthetic monitoring usage</h2>
<h2 className={styles.usageHeader}>Your Grafana Cloud Synthetic Monitoring usage</h2>
<BigValue
theme={config.theme2}
textMode={BigValueTextMode.ValueAndName}
colorMode={BigValueColorMode.Value}
graphMode={BigValueGraphMode.Area}
height={100}
width={150}
height={80}
width={75}
value={{
numeric: checks.length,
color: config.theme2.colors.text.primary,
Expand All @@ -187,8 +187,8 @@ const HomePage = () => {
textMode={BigValueTextMode.ValueAndName}
colorMode={BigValueColorMode.Value}
graphMode={BigValueGraphMode.Area}
height={100}
width={150}
height={80}
width={115}
value={{
numeric: usage?.activeSeries ?? 0,
color: config.theme2.colors.text.primary,
Expand All @@ -201,8 +201,8 @@ const HomePage = () => {
textMode={BigValueTextMode.ValueAndName}
colorMode={BigValueColorMode.Value}
graphMode={BigValueGraphMode.Area}
height={100}
width={225}
height={80}
width={175}
value={{
numeric: usage?.checksPerMonth ?? 0,
color: config.theme2.colors.text.primary,
Expand All @@ -215,12 +215,12 @@ const HomePage = () => {
textMode={BigValueTextMode.ValueAndName}
colorMode={BigValueColorMode.Value}
graphMode={BigValueGraphMode.Area}
height={100}
width={200}
height={80}
width={150}
value={{
numeric: usage?.logsGbPerMonth ?? 0,
color: config.theme2.colors.text.primary,
title: 'Logs',
title: 'Logs per month',
text: `${usage?.logsGbPerMonth.toFixed(2) ?? 0}GB`,
}}
/>
Expand Down

0 comments on commit d157abe

Please sign in to comment.