Skip to content

Commit 51381e6

Browse files
committed
feat: improve timeline on mobile
1 parent 4275102 commit 51381e6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/ProjectCard.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ const { title, description, icon, link, awards = [], year } = Astro.props;
129129
}
130130

131131
@media (max-width: 1000px) {
132+
.direct-arrow {
133+
top: 0.5rem;
134+
right: 0.5rem;
135+
}
136+
132137
.info-container {
133138
width: 100%;
134139
}

src/components/TimelineCard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ const { year } = Astro.props;
5959
.card {
6060
position: relative;
6161
width: 85%;
62-
min-width: 340px;
63-
min-height: 160px;
6462
padding: 3rem;
6563
margin-top: var(--timeline-card-margin-top);
6664
margin-left: 4rem;
@@ -97,6 +95,8 @@ const { year } = Astro.props;
9795
}
9896

9997
.card {
98+
width: auto;
99+
padding: 1rem;
100100
margin-top: 0;
101101
margin-left: 0;
102102
}

0 commit comments

Comments
 (0)