Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit b633e3b

Browse files
fix: teeniest screen size mobile responsivess for schedule
1 parent 059cb3b commit b633e3b

1 file changed

Lines changed: 28 additions & 9 deletions

File tree

src/components/ScheduledActivity.astro

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,20 @@ const descriptionLines = await Promise.all(
2828

2929
<style>
3030
.scheduled-activity {
31-
display: grid;
3231
font-family: var(--fontFamilyBody);
33-
gap: 0.75rem 1rem;
34-
grid-template-columns: clamp(5rem, 20vw, 10rem) auto;
35-
grid-template-rows: auto auto;
3632
margin: 0 var(--widthBodyPadding) 3rem;
3733
max-width: var(--widthBodyLean);
3834
}
3935

4036
.activity-title {
4137
font-size: var(--fontSizeH3);
42-
grid-area: 1 / 2 / 2 / 3;
4338
}
4439

4540
.activity-locators {
4641
display: flex;
47-
flex-direction: column;
4842
gap: 0.75rem;
49-
grid-area: 1 / 1 / 3 / 2;
50-
text-align: right;
43+
justify-content: space-between;
44+
margin: 0.5rem 0;
5145
}
5246

5347
.activity-time {
@@ -57,14 +51,39 @@ const descriptionLines = await Promise.all(
5751

5852
.activity-location {
5953
font-size: var(--fontSizeBody);
54+
text-align: right;
6055
}
6156

6257
.activity-description {
6358
display: flex;
6459
gap: 0.5rem;
6560
flex-direction: column;
66-
grid-area: 2 / 2 / 3 / 3;
6761
font-size: var(--fontSizeBody);
6862
width: 100%;
6963
}
64+
65+
@media (min-width: 490px) {
66+
.scheduled-activity {
67+
display: grid;
68+
grid-template-columns: clamp(5rem, 20vw, 10rem) auto;
69+
grid-template-rows: auto auto;
70+
gap: 0.75rem 1rem;
71+
}
72+
73+
.activity-title {
74+
grid-area: 1 / 2 / 2 / 3;
75+
}
76+
77+
.activity-locators {
78+
grid-area: 1 / 1 / 3 / 2;
79+
flex-direction: column;
80+
margin: 0;
81+
justify-content: flex-start;
82+
text-align: right;
83+
}
84+
85+
.activity-description {
86+
grid-area: 2 / 2 / 3 / 3;
87+
}
88+
}
7089
</style>

0 commit comments

Comments
 (0)