Skip to content

Commit d157abe

Browse files
authored
fix: make homepage usage breakpoints smaller (#367)
1 parent 129887e commit d157abe

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

‎src/page/HomePage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ test('shows usage', async () => {
3333
await assertBigValue('Total checks', '1');
3434
await assertBigValue('Total active series', '81');
3535
await assertBigValue('Checks executions per month', '43,800');
36-
await assertBigValue('Logs', '0.04GB');
36+
await assertBigValue('Logs per month', '0.04GB');
3737
});

‎src/page/HomePage.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
6767
`,
6868
usageGrid: css`
6969
display: grid;
70-
grid-template-columns: repeat(auto-fit, minmax(250px, auto));
70+
grid-template-columns: repeat(auto-fit, minmax(160px, auto));
7171
grid-gap: ${theme.spacing(1)};
7272
`,
7373
usageHeader: css`
@@ -167,14 +167,14 @@ const HomePage = () => {
167167
</DisplayCard>
168168
</div>
169169
<DisplayCard className={cx(styles.card, styles.usageGrid, styles.marginBottom)}>
170-
<h2 className={styles.usageHeader}>Your Grafana Cloud synthetic monitoring usage</h2>
170+
<h2 className={styles.usageHeader}>Your Grafana Cloud Synthetic Monitoring usage</h2>
171171
<BigValue
172172
theme={config.theme2}
173173
textMode={BigValueTextMode.ValueAndName}
174174
colorMode={BigValueColorMode.Value}
175175
graphMode={BigValueGraphMode.Area}
176-
height={100}
177-
width={150}
176+
height={80}
177+
width={75}
178178
value={{
179179
numeric: checks.length,
180180
color: config.theme2.colors.text.primary,
@@ -187,8 +187,8 @@ const HomePage = () => {
187187
textMode={BigValueTextMode.ValueAndName}
188188
colorMode={BigValueColorMode.Value}
189189
graphMode={BigValueGraphMode.Area}
190-
height={100}
191-
width={150}
190+
height={80}
191+
width={115}
192192
value={{
193193
numeric: usage?.activeSeries ?? 0,
194194
color: config.theme2.colors.text.primary,
@@ -201,8 +201,8 @@ const HomePage = () => {
201201
textMode={BigValueTextMode.ValueAndName}
202202
colorMode={BigValueColorMode.Value}
203203
graphMode={BigValueGraphMode.Area}
204-
height={100}
205-
width={225}
204+
height={80}
205+
width={175}
206206
value={{
207207
numeric: usage?.checksPerMonth ?? 0,
208208
color: config.theme2.colors.text.primary,
@@ -215,12 +215,12 @@ const HomePage = () => {
215215
textMode={BigValueTextMode.ValueAndName}
216216
colorMode={BigValueColorMode.Value}
217217
graphMode={BigValueGraphMode.Area}
218-
height={100}
219-
width={200}
218+
height={80}
219+
width={150}
220220
value={{
221221
numeric: usage?.logsGbPerMonth ?? 0,
222222
color: config.theme2.colors.text.primary,
223-
title: 'Logs',
223+
title: 'Logs per month',
224224
text: `${usage?.logsGbPerMonth.toFixed(2) ?? 0}GB`,
225225
}}
226226
/>

0 commit comments

Comments
 (0)