Skip to content

Commit e1287d4

Browse files
committed
Fix index layout on firefox
1 parent 26d233a commit e1287d4

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/components/Bandcamp.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { album, tracks = 5 } = Astro.props;
1717
<style lang="scss">
1818
@use '../styles/tokens' as *;
1919

20-
$constant-height: 107.8px;
20+
$constant-height: 109px;
2121
$height-per-track: 32.8px;
2222

2323
iframe {

src/pages/index.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ posts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf())
4545
@include font-technical;
4646
}
4747

48-
.item:not(:last-child) {
49-
margin-block-end: $size-lg;
48+
@media (max-width: $single-width) {
49+
.item:not(:last-child) {
50+
margin-block-end: $size-lg;
51+
}
5052
}
5153
}
5254

@@ -57,7 +59,7 @@ posts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf())
5759

5860
display: grid;
5961
gap: $space-md $space-md;
60-
grid-template: auto auto / min-content auto;
62+
grid-template: auto auto / auto auto;
6163

6264
.date {
6365
text-align: right;

src/util/formatDate.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ const monthName = (month: number) => {
2828
][month];
2929
};
3030

31+
const shortMonthName = (month: number) => {
32+
return monthName(month).substring(0, 3);
33+
}
34+
3135
export const compact = (date: Date) => {
3236
const day = date.getDate();
33-
const month = monthName(date.getMonth());
37+
const month = shortMonthName(date.getMonth());
3438
const year = date.getFullYear();
3539

3640
return `${day}/${month}/${year}`;

0 commit comments

Comments
 (0)