feat: change style a little more

This commit is contained in:
2025-03-14 13:58:28 +01:00
parent 8191587115
commit a663b34500
3 changed files with 36 additions and 39 deletions

View File

@@ -10,7 +10,7 @@ type PlayerListProps = Partial<ReactSortableProps<any>> & {
function PlayerList(props: PlayerListProps) {
return (
<ReactSortable {...props} animation={200}>
<ReactSortable {...props} animation={200} swapThreshold={0.4}>
{props.list?.map((item, index) => (
<div key={item.id} className="item">
{props.orderedList
@@ -278,7 +278,7 @@ export default function Rankings() {
useEffect(() => {
loadPlayers();
}, []);
}, [user]);
const tabs = [
{ id: "Chemistry", label: "🧪 Chemistry" },
@@ -287,7 +287,7 @@ export default function Rankings() {
return (
<>
{user && players && (
{user && players ? (
<div>
<div className="container navbar">
{tabs.map((tab) => (
@@ -314,6 +314,8 @@ export default function Rankings() {
}
})}
</div>
) : (
<span className="loader" />
)}
</>
);