Skip to content

Commit

Permalink
Fixed issue with scrolling on ranking page on mobile (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelZhao21 authored Sep 11, 2024
1 parent ea73aa2 commit e1733e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/judge/dnd/DragHamburger.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const DragHamburger = () => {
return (
<div className="drag-handle p-2 cursor-grab">
<div className="drag-handle p-2 cursor-grab touch-none">
<svg
width="28"
height="25"
Expand Down
1 change: 1 addition & 0 deletions client/src/components/judge/dnd/SortableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const SortableItem = (props: SortableItemProps) => {
const style = {
transform: CSS.Transform.toString(transform),
transition,
touchAction: 'initial',
};

return (
Expand Down
3 changes: 3 additions & 0 deletions client/src/pages/judge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ const Judge = () => {
onDragEnd={handleDragEnd}
>
<h2 className="text-primary text-xl font-bold mt-4">Ranked Projects</h2>
<p className="text-light text-sm">
Click on titles to edit scores and see details.
</p>
<div className="h-[1px] w-full bg-light my-2"></div>
<Droppable id="ranked" projects={ranked} active={activeDropzone} />

Expand Down

0 comments on commit e1733e4

Please sign in to comment.