Skip to content

Commit 5c3326b

Browse files
committed
Adds small indicator for responsive height
1 parent 6b2fcaa commit 5c3326b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/projects/SampleProjectsDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function SampleProjectsDropdown() {
9393
leaveFrom="transform opacity-100 scale-100"
9494
leaveTo="transform opacity-0 scale-95"
9595
>
96-
<Menu.Items className="absolute w-max z-10 mt-2 origin-top-left rounded-md ml-6 bg-white shadow-sm ring-1 ring-black ring-opacity-5 focus:outline-none">
96+
<Menu.Items className="absolute w-max z-10 mt-2 small:max-h-72 small:overflow-y-auto origin-top-left rounded-md ml-6 bg-white shadow-sm ring-1 ring-black ring-opacity-5 focus:outline-none">
9797
<div className="py-1">
9898
<Menu.Item>
9999
{({ active }) => (

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = {
6464
},
6565
screens: {
6666
"xs": "450px",
67+
'small': { 'raw': '(max-height: 1200px)' },
6768
...defaultTheme.screens,
6869
}
6970
},

0 commit comments

Comments
 (0)