Skip to content

Commit 3d38cd2

Browse files
authored
fix: reseach card mobile (#67)
1 parent ab57a6c commit 3d38cd2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app/components/agents/agents-page.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ export function AgentsPage({ agents }: AgentsPageProps) {
6666
}
6767
randomAgents={randomAgents}
6868
trigger={
69-
<button className="group w-full" type="button">
70-
<div className="relative aspect-[4/1] overflow-hidden rounded-2xl shadow-lg">
69+
<button
70+
className="group w-full items-end justify-start"
71+
type="button"
72+
>
73+
<div className="relative min-h-[140px] w-full overflow-hidden rounded-2xl shadow-lg md:aspect-[4/1]">
7174
<div className="absolute inset-0">
7275
<img
7376
src="/banner_cloud.jpg"
@@ -78,13 +81,13 @@ export function AgentsPage({ agents }: AgentsPageProps) {
7881

7982
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent dark:from-black/70 dark:via-black/20" />
8083

81-
<div className="relative flex h-full flex-col p-5">
84+
<div className="relative flex h-full min-h-[140px] flex-col p-5">
8285
{/* <div className="self-start rounded-full bg-black/70 px-3 py-1.5 text-xs font-medium text-white backdrop-blur-sm">
8386
Research
8487
</div> */}
8588

8689
<div className="mt-auto flex flex-row items-end justify-between gap-2">
87-
<div className="flex flex-col items-start gap-0.5">
90+
<div className="flex flex-col items-start gap-0.5 text-left">
8891
<h3 className="text-2xl leading-tight font-medium text-white">
8992
Zola Research
9093
</h3>

0 commit comments

Comments
 (0)