ComplaintDetails Modified
parent
5b06bfb943
commit
daa2eb2084
|
|
@ -4,7 +4,7 @@ import React from "react";
|
|||
export default function page({ params }: { params: any }) {
|
||||
const id = params.id;
|
||||
return (
|
||||
<div className="w-[90vw] sm:w-[90vw] lg:w-[85vw] xl:w-[75vw] 3xl:w-[70vw] mt-3 sm:mt-6 mx-auto mb-10">
|
||||
<div className="w-[90vw] sm:w-[90vw] lg:w-[85vw] xl:w-[75vw] 3xl:w-[70vw] mt-3 sm:mt-6 mx-auto mb-6">
|
||||
<ComplainsDetails role="Inspector" id={id} />
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import Image from "next/image";
|
|||
import { ComplainDetailsItems } from "@/constants";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import useData from "@/store/useData";
|
||||
import { convertDate , convertFullTime } from "@/lib/utils";
|
||||
import { convertDate, convertFullTime } from "@/lib/utils";
|
||||
import { Badge } from "./ui/badge";
|
||||
import InspectorOperations from "./InspectorOperations";
|
||||
import { postComplaintTracking } from "@/utils/citizenApi";
|
||||
|
|
@ -200,7 +200,7 @@ export default function ComplainsDetails({
|
|||
{/* Editt */}
|
||||
<div className="flex items-start w-full gap-2 mt-2 max-lg:flex-col">
|
||||
{/* 1 */}
|
||||
<div className="flex flex-col w-full lg:w-1/3 gap-3 lg:sticky top-28 lg:h-[78vh]">
|
||||
<div className="flex flex-col w-full lg:w-1/3 gap-3 lg:sticky top-28 lg:h-[80vh]">
|
||||
{/* ***** */}
|
||||
<div className="max-lg:hidden bg-[#E9E9E9] rounded-md p-4 px-10 flex flex-col lg:h-full">
|
||||
<p className="text-[#464646] text-base font-bold mb-1">
|
||||
|
|
@ -319,10 +319,15 @@ export default function ComplainsDetails({
|
|||
)}
|
||||
</div>
|
||||
|
||||
<div className="bg-[#E9E9E9] rounded-md py-4 px-10 flex flex-col max-h-[50vh] lg:max-h-[39.5vh] 2xl:max-h-[43.5vh] 3xl:max-h-[41vh] min-[1920px]:max-h-[48.5vh] overflow-auto
|
||||
scrollbar-thin scrollbar-thumb-gray-500 scrollbar-track-gray-100">
|
||||
<p className="text-[#464646] text-base font-bold">روند شکایت</p>
|
||||
<div className="flex flex-col mt-4 gap-y-4">
|
||||
<div className="h-[calc(80vh-11.5em)] max-h-[calc(80vh-11.5em)] overflow-hidden">
|
||||
<div className="bg-[#E9E9E9] rounded-md py-4 px-10 flex flex-col h-full ">
|
||||
<p className="text-[#464646] text-base font-bold">
|
||||
روند شکایت
|
||||
</p>
|
||||
<div
|
||||
className="flex flex-col mt-4 gap-y-4 overflow-auto
|
||||
scrollbar-thin scrollbar-thumb-gray-500 scrollbar-track-gray-100 "
|
||||
>
|
||||
{data.contents?.map((item: any) => {
|
||||
return (
|
||||
<div
|
||||
|
|
@ -360,7 +365,10 @@ export default function ComplainsDetails({
|
|||
>
|
||||
<a
|
||||
onClick={() =>
|
||||
openFileInNewTab(item.data, item.mimeType)
|
||||
openFileInNewTab(
|
||||
item.data,
|
||||
item.mimeType
|
||||
)
|
||||
}
|
||||
className="flex items-center gap-2 truncate cursor-pointer "
|
||||
>
|
||||
|
|
@ -390,6 +398,7 @@ export default function ComplainsDetails({
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 3 */}
|
||||
{/* ****** */}
|
||||
|
|
|
|||
Loading…
Reference in New Issue