Skip to content

Commit baa69e8

Browse files
committed
fix(frontend): slightly improve mobile sizing
1 parent ab9e517 commit baa69e8

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

frontend/src/components/Clusters.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@
172172
--cluster-item-size: 4.2rem;
173173
--cluster-gap-size: calc(2*var(--spacing));
174174
}
175+
@media (max-width: 768px) {
176+
:root {
177+
--cluster-item-size: 3.8rem;
178+
}
179+
}
175180
.cluster
176181
{
177182
width: var(--cluster-item-size);

frontend/src/components/Incident.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
{#if incident != undefined}
1414
{#if full}
1515
<a class="card bg-base-200 w-full shadow-sm {incident_class}" href={!full ? `/i/${incident.id}` : undefined}>
16-
<div class="card-body m-auto w-3/4 items-center">
16+
<div class="card-body m-auto lg:w-3/4 w-full items-center">
1717
<h2 class="card-title py-4">
1818
<div class="flex flex-col w-full items-center">
19-
<span class="text-2xl">{incident.name} {#if incident.impact != "none"}<div class="badge {impact_class}">{incident.impact}</div>{/if}</span>
19+
<span class="lg:text-2xl text-xl">{incident.name} {#if incident.impact != "none"}<div class="badge {impact_class}">{incident.impact}</div>{/if}</span>
2020
<span class="text-sm italic">{dateAgo(incident.timestamp.getTime())}</span>
2121
</div>
2222
</h2>

frontend/src/components/Status.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</script>
3232

3333
<div class="card">
34-
<div role="alert" class="alert {statusClass} flex flex-col items-start gap-1 h-28">
34+
<div role="alert" class="alert {statusClass} flex flex-col items-start gap-1 h-1/8">
3535
{#if status}
3636
<span class="text-lg font-bold">{statusText}</span>
3737
<span class="text-md">{statusInfoText}</span>

0 commit comments

Comments
 (0)