Fix game settings scrolling
This commit is contained in:
parent
5974134ad8
commit
f0d177feeb
1 changed files with 2 additions and 2 deletions
|
|
@ -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" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue