From 1e57d37c255d6f5dc77ad120a1e9996e2aff1c29 Mon Sep 17 00:00:00 2001 From: Leon Jacobs Date: Wed, 2 Oct 2024 18:56:53 +0200 Subject: [PATCH] (feat) small refactor for copy html modal --- web/ui/src/pages/detail/Detail.tsx | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/web/ui/src/pages/detail/Detail.tsx b/web/ui/src/pages/detail/Detail.tsx index 77e43ef4..f25e0e8a 100644 --- a/web/ui/src/pages/detail/Detail.tsx +++ b/web/ui/src/pages/detail/Detail.tsx @@ -4,7 +4,7 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@ import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { ScrollArea } from "@/components/ui/scroll-area"; -import { ExternalLink, ChevronLeft, ChevronRight, Code, ClockIcon, Trash2Icon, DownloadIcon, ImagesIcon, ZoomInIcon, XIcon } from 'lucide-react'; +import { ExternalLink, ChevronLeft, ChevronRight, Code, ClockIcon, Trash2Icon, DownloadIcon, ImagesIcon, ZoomInIcon, XIcon, CopyIcon } from 'lucide-react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; import { WideSkeleton } from '@/components/loading'; import { Form, Link, useNavigate, useParams } from 'react-router-dom'; @@ -210,19 +210,25 @@ const ScreenshotDetailPage = () => { View HTML - + - HTML Content - - The HTML content of the page is shown below. - + + HTML Content + + - +
{detail.html}
- +