Fix game settings scrolling

This commit is contained in:
Joey Yakimowich-Payne 2026-01-15 07:12:52 -07:00
commit f0d177feeb
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1

View file

@ -184,11 +184,11 @@ export const GameConfigPanel: React.FC<GameConfigPanelProps> = ({
} }
return ( return (
<div className="space-y-2"> <div className={compact ? "max-h-64 md:max-h-96 overflow-y-auto space-y-2" : "space-y-2"}>
{compact && ( {compact && (
<button <button
onClick={() => setExpanded(false)} onClick={() => setExpanded(false)}
className="w-full flex items-center justify-between p-3 bg-gray-100 rounded-xl hover:bg-gray-200 transition" className="w-full flex items-center justify-between p-3 bg-gray-100 rounded-xl hover:bg-gray-200 transition sticky top-0 z-10"
> >
<span className="font-bold text-gray-700">Game Settings</span> <span className="font-bold text-gray-700">Game Settings</span>
<ChevronUp size={20} className="text-gray-400" /> <ChevronUp size={20} className="text-gray-400" />