Skip to content

Commit 8193d3c

Browse files
committed
fix: adds scrollbar on colleague creation
1 parent 15e4891 commit 8193d3c

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/components/Foundary/colleague-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function ColleagueForm({
185185
const buttonLabel = submitLabel || (colleague ? 'Update Colleague' : 'Add Colleague')
186186

187187
return (
188-
<Card className="m-8 w-full max-w-4xl mx-auto">
188+
<Card className="m-8 w-full max-w-4xl mx-auto overflow-y-scroll no-scrollbar">
189189
<CardHeader>
190190
<CardTitle className="flex items-center gap-2">
191191
<Bot className="h-5 w-5" />

tailwind.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ const config = {
1515
require('tailwindcss-animated'),
1616
require('@tailwindcss/typography'),
1717
require('tailwindcss-intersect'),
18+
function ({ addUtilities }) {
19+
addUtilities({
20+
'.no-scrollbar::-webkit-scrollbar': {
21+
display: 'none',
22+
},
23+
'.no-scrollbar': {
24+
'-ms-overflow-style': 'none',
25+
'scrollbar-width': 'none',
26+
},
27+
})
28+
},
1829
],
1930
prefix: '',
2031
safelist: [

0 commit comments

Comments
 (0)