Fix: Add scrolling to edit modals

This commit is contained in:
gpt-engineer-app[bot]
2025-10-15 14:42:35 +00:00
parent 4b500604d8
commit 2071a4561b
4 changed files with 6 additions and 6 deletions

View File

@@ -438,7 +438,7 @@ export function SubmissionReviewManager({
<>
<Container open={open} onOpenChange={onOpenChange}>
{isMobile ? (
<SheetContent side="bottom" className="h-[90vh]">
<SheetContent side="bottom" className="h-[90vh] overflow-y-auto">
<SheetHeader>
<SheetTitle>Review Submission</SheetTitle>
<SheetDescription>
@@ -448,7 +448,7 @@ export function SubmissionReviewManager({
<ReviewContent />
</SheetContent>
) : (
<DialogContent className="max-w-5xl max-h-[90vh]">
<DialogContent className="max-w-5xl max-h-[90vh] overflow-y-auto">
<DialogHeader>
<DialogTitle>Review Submission</DialogTitle>
<DialogDescription>

View File

@@ -139,7 +139,7 @@ export function FieldHistoryDialog({
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-3xl max-h-[80vh]">
<DialogContent className="max-w-3xl max-h-[80vh] overflow-y-auto">
<DialogHeader>
<DialogTitle>Field History: {formatFieldName(fieldName)}</DialogTitle>
</DialogHeader>

View File

@@ -59,7 +59,7 @@ export function VersionComparisonDialog({
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-4xl max-h-[80vh]">
<DialogContent className="max-w-4xl max-h-[80vh] overflow-y-auto">
<DialogHeader>
<DialogTitle>Compare Versions</DialogTitle>
<div className="flex items-center gap-4 text-sm text-muted-foreground mt-2">

View File

@@ -47,7 +47,7 @@ export function VersionIndicator({
</Button>
<Dialog open={showHistory} onOpenChange={setShowHistory}>
<DialogContent className="max-w-4xl max-h-[80vh]">
<DialogContent className="max-w-4xl max-h-[80vh] overflow-y-auto">
<DialogHeader>
<DialogTitle>Version History: {entityName}</DialogTitle>
</DialogHeader>
@@ -84,7 +84,7 @@ export function VersionIndicator({
</div>
<Dialog open={showHistory} onOpenChange={setShowHistory}>
<DialogContent className="max-w-4xl max-h-[80vh]">
<DialogContent className="max-w-4xl max-h-[80vh] overflow-y-auto">
<DialogHeader>
<DialogTitle>Version History: {entityName}</DialogTitle>
</DialogHeader>