Skip to content

Commit 4799e1c

Browse files
committed
style: Adjusted the Card width and font size for better readability on small screen
1 parent 4086a76 commit 4799e1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/repo-structure.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ export default function GitHubProjectStructure() {
156156
animate={{ opacity: 1, y: 0 }}
157157
transition={{ duration: 0.5 }}
158158
>
159-
<Card className="w-full max-w-5xl mx-auto p-6 md:p-8 bg-gradient-to-br from-blue-50 to-white shadow-xl" id="generator">
159+
<Card className="w-full max-w-5xl mx-auto p-1 md:p-8 bg-gradient-to-br from-blue-50 to-white shadow-xl" id="generator">
160160
<CardHeader>
161-
<CardTitle className="text-lg md:text-xl lg:text-2xl font-semibold text-gray-900 flex items-center justify-center gap-2">
161+
<CardTitle className="text-2xl md:text-3xl lg:text-4xl font-semibold text-gray-900 flex items-center justify-center gap-2">
162162
Generate a <span className="text-blue-600">Tree</span>
163-
<ListTree className="w-5 h-5 md:w-6 md:h-6 lg:w-7 lg:h-7 text-blue-600" />
163+
<ListTree className="w-6 h-6 md:w-8 md:h-8 lg:w-10 lg:h-10 text-blue-600" />
164164
</CardTitle>
165165
</CardHeader>
166166
<CardContent>
@@ -221,7 +221,7 @@ export default function GitHubProjectStructure() {
221221
>
222222
<div className="relative">
223223
<pre
224-
className={`bg-gray-800 text-green-400 p-10 md:p-8 rounded-lg overflow-x-auto mt-6 whitespace-pre-wrap break-words ${
224+
className={`bg-gray-800 text-green-400 p-6 rounded-lg overflow-x-auto mt-6 whitespace-pre-wrap break-words ${
225225
expanded ? 'max-h-[none]' : 'max-h-96'
226226
} overflow-y-auto text-sm`}
227227
>

0 commit comments

Comments
 (0)