Skip to content

Commit f888085

Browse files
committed
demo card sizing nit and hide scroll bars
1 parent f56737e commit f888085

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

packages/web/src/app/[domain]/components/homepage/askSourcebotDemoCards.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const AskSourcebotDemoCards = ({
114114
))}
115115
</div>
116116

117-
<div className="flex flex-wrap justify-center gap-3">
117+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 auto-rows-fr">
118118
{demoExamples.searchExamples
119119
.filter((example) => {
120120
if (selectedFilterSearchScope === null) return true;
@@ -125,11 +125,11 @@ export const AskSourcebotDemoCards = ({
125125
return (
126126
<Card
127127
key={example.url}
128-
className="cursor-pointer transition-all duration-200 hover:shadow-md hover:scale-105 hover:border-primary/50 group w-full max-w-[350px]"
128+
className="cursor-pointer transition-all duration-200 hover:shadow-md hover:scale-105 hover:border-primary/50 group w-full h-full flex flex-col"
129129
onClick={() => handleExampleClick(example)}
130130
>
131-
<CardContent className="p-4">
132-
<div className="space-y-3">
131+
<CardContent className="p-4 flex-1 flex flex-col">
132+
<div className="space-y-3 flex flex-col h-full">
133133
<div className="flex items-center justify-between">
134134
{searchScopes.map((searchScope) => (
135135
<Badge key={searchScope.value} variant="secondary" className="text-[10px] px-1.5 py-0.5 h-4 flex items-center gap-1">
@@ -138,7 +138,7 @@ export const AskSourcebotDemoCards = ({
138138
</Badge>
139139
))}
140140
</div>
141-
<div className="space-y-1">
141+
<div className="space-y-1 flex-1">
142142
<h4 className="font-semibold text-sm group-hover:text-primary transition-colors line-clamp-2">
143143
{example.title}
144144
</h4>

packages/web/src/app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
@import "./codemirror-styles.css";
66

77
@layer base {
8+
html {
9+
overflow-y: scroll;
10+
}
11+
12+
/* Hide scrollbar but keep functionality */
13+
html::-webkit-scrollbar {
14+
width: 0;
15+
background: transparent;
16+
}
17+
818
:root {
919
--background: hsl(0 0% 100%);
1020
--background-secondary: hsl(0, 0%, 98%);

0 commit comments

Comments
 (0)