Skip to content

Commit 6a2764c

Browse files
committed
fix: update EventGrid to remove all empty mobile titles and adjust History component's padding
1 parent 56d61c3 commit 6a2764c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Components/History/EventItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function EventItem({ Prev, Curr }: IEventItem) {
117117
{servicesTxt} {regionsTxt} {Curr.Type}
118118
</a>
119119

120-
<div className="flex gap-x-2.5">
120+
<div className="flex gap-x-2.5 gap-y-1.5 flex-wrap">
121121
<ScaleTag color={color}>
122122
{Curr.Status}
123123
</ScaleTag>

src/Components/Home/EventGrid.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export function EventGrid() {
3737
}
3838
});
3939

40-
const mobileTitle = node.querySelector('h5.tbody__mobile-title');
41-
if (mobileTitle && mobileTitle.innerHTML === '&nbsp;') {
42-
mobileTitle.remove();
43-
}
40+
const mobileTitles = node.querySelectorAll('h5.tbody__mobile-title');
41+
mobileTitles.forEach((title) => {
42+
title.remove();
43+
});
4444
}
4545
});
4646
}
@@ -151,7 +151,7 @@ export function EventGrid() {
151151

152152
return (
153153
<ScaleDataGrid
154-
className="rounded-lg bg-white shadow-md"
154+
className="sm:rounded-lg sm:bg-white sm:shadow-md"
155155
pageSize={4}
156156
heading="Current Events"
157157
hideBorder

src/Pages/History.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function History() {
2222
</h3>
2323
</section>
2424

25-
<ol className="flex flex-col">
25+
<ol className="flex flex-col pl-3 xl:pl-0">
2626
{chain(DB.Events)
2727
.orderBy(x => x.Start, "desc")
2828
.map((event, index, events) => [events[index - 1], event])

0 commit comments

Comments
 (0)