Skip to content

Commit 4e2de4c

Browse files
committed
feat: update responsive text sizes and adjust header class for improved layout
1 parent 4a0fc7c commit 4e2de4c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/components/client/Card/Card.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ export function Card(props: {
112112
)}
113113
<Text
114114
as="div"
115-
size="6"
115+
size={{
116+
initial: "4",
117+
lg: "6",
118+
}}
116119
weight="bold"
117120
truncate
118121
color="gray"
@@ -125,7 +128,10 @@ export function Card(props: {
125128
{props.subtitle && (
126129
<Text
127130
as="div"
128-
size="5"
131+
size={{
132+
initial: "2",
133+
lg: "5",
134+
}}
129135
color="gray"
130136
truncate
131137
className="dark text-(--accent-a11)"

src/components/server/Header/Header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function Header(props: { theme?: ThemeType }) {
6666
justify={"between"}
6767
align={"center"}
6868
columns="3"
69-
className="initial:my-6 initial:mb-[3rem] my-9 items-center rounded-(--radius-2) border-t border-r border-b border-l border-(--accent-4) px-6 py-5 print:hidden"
69+
className="my-9 mb-[3rem] items-center rounded-(--radius-2) border-t border-r border-b border-l border-(--accent-4) px-6 py-5 print:hidden"
7070
style={{
7171
...getSurfaceStyle(),
7272
}}

src/routes/HomeRoute/HomeRoute.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function HomeRoute(props: {
8787
width={"40%"}
8888
justify="center"
8989
align={"center"}
90-
className="initial:hidden relative md:flex"
90+
className="relative hidden md:flex"
9191
>
9292
<Box
9393
className="animate-blur absolute z-[-1] hidden h-[calc(100%+4rem)] w-[calc(100%+4rem)] rounded-lg opacity-60 dark:block"

0 commit comments

Comments
 (0)