Skip to content

Commit

Permalink
fix(fe): enable scrolling in modal content (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimhyojung0810 authored Nov 23, 2024
1 parent 6071189 commit 7444775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const columns: ColumnDef<BelongedContest>[] = [
<DataTableColumnHeader column={column} title="Contest Title" />
),
cell: ({ row }) => (
<p className="max-w-[700px] overflow-hidden text-ellipsis whitespace-nowrap text-left font-medium">
<p className="max-w-[700px] overflow-hidden text-ellipsis whitespace-nowrap text-left font-medium text-black">
{row.getValue('title')}
</p>
),
Expand All @@ -57,7 +57,9 @@ export const columns: ColumnDef<BelongedContest>[] = [
<p className="text-center font-mono text-sm font-medium">State</p>
),
cell: ({ row }) => (
<p className="text-center font-normal">{row.getValue('state')}</p>
<p className="text-center font-light text-black">
{row.getValue('state')}
</p>
)
},
{
Expand All @@ -68,7 +70,7 @@ export const columns: ColumnDef<BelongedContest>[] = [
cell: ({ row }) => (
<p
className={cn(
'text-center font-normal',
'text-center font-light text-black',
row.original.isSetToZero && 'text-primary'
)}
>
Expand All @@ -84,7 +86,7 @@ export const columns: ColumnDef<BelongedContest>[] = [
cell: ({ row }) => (
<p
className={cn(
'text-center font-normal',
'text-center font-light text-black',
row.original.isSetToZero && 'text-primary'
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function ScoreCautionDialog({

return (
<Dialog open={isOpen} onOpenChange={onCancel}>
<DialogContent className="h-[627px] max-h-[627px] w-[875px] max-w-[875px] gap-6 p-10">
<DialogContent className="max-h-[627px] w-[875px] max-w-[875px] gap-6 overflow-y-auto p-10">
<DialogHeader>
<DialogTitle>Are you sure you want to edit this problem?</DialogTitle>
<DialogDescription className="gap-4 whitespace-pre-line pt-4">
Expand Down

0 comments on commit 7444775

Please sign in to comment.