Skip to content

Commit e231e00

Browse files
committed
fix project description being too long
1 parent 51532b7 commit e231e00

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

contents/projects/hackathon/2024-06-08/shift-syncer.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ title: ShiftSyncer
33
kind: hackathon
44
status: finished
55
date: 2024-06-08
6-
description: 複数人から登録されたシフトの希望を基に、最適なシフトを作成するアプリです。シフトの希望を出す際に、シフトに入れるか否かだけではなく、積極的に入りたいのか、それとも人が居なかったら入っても良い程度なのかといった事情も勘案できるようになっています。
6+
description: 複数人から登録されたシフトの希望を基に、最適なシフトを作成するアプリです。
77
image:
88
src: ./shift-syncer.png
99
github: https://github.com/ut-code/ShiftSyncer
1010
---
11+
12+
# ShiftSyncer
13+
14+
複数人から登録されたシフトの希望を基に、最適なシフトを作成するアプリです。
15+
16+
シフトの希望を出す際に、シフトに入れるか否かだけではなく、積極的に入りたいのか、それとも人が居なかったら入っても良い程度なのかといった事情も勘案できるようになっています。

src/components/ProjectList.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const { projects, variant = "full" } = props;
4444
<h3 class="text-xl font-bold text-gray-800">
4545
{project.data.title}
4646
</h3>
47-
<p class="prose mt-2 text-gray-500">
47+
{/* h-14: 2 行はいる */}
48+
<p class="prose mt-2 line-clamp-2 h-14 text-gray-500">
4849
{project.data.description.length < 120
4950
? project.data.description
5051
: project.data.description.slice(0, 120) + "..."}

0 commit comments

Comments
 (0)