dilmurod
Dilmurod 1 month ago
parent d47a38d919
commit 472d9ab92f

@ -209,7 +209,7 @@ const TaskModal = ({
onCancel={handleCancel} onCancel={handleCancel}
footer={null} footer={null}
open={modalOpen} open={modalOpen}
width={700} width={800}
maskClosable={true} maskClosable={true}
// style={{ position: "fixed", right: 0, top: 0, bottom: 0, height: 1000 }} // style={{ position: "fixed", right: 0, top: 0, bottom: 0, height: 1000 }}
> >

@ -18,6 +18,9 @@ import tt from "../../assets/tticon.svg";
import tagIcon from "../../assets/tagIcon.png"; import tagIcon from "../../assets/tagIcon.png";
// @ts-ignore // @ts-ignore
import tgIcon from "../../assets/telegram.png"; import tgIcon from "../../assets/telegram.png";
//
import webIcon from "../../assets/web.png";
//
import { isMobile, role } from "../../App"; import { isMobile, role } from "../../App";
import { theme } from "antd"; import { theme } from "antd";
@ -142,7 +145,6 @@ const TaskTable = ({
// title: "", // title: "",
// dataIndex: "no", // dataIndex: "no",
// width: isMobile ? "1%" : "3.5%", // width: isMobile ? "1%" : "3.5%",
// fixed: isMobile ? "left" : false,
// key: "1", // key: "1",
// render: (text: any, record: TTask) => ( // render: (text: any, record: TTask) => (
// <div // <div
@ -156,6 +158,7 @@ const TaskTable = ({
// <Tooltip placement="topLeft" title={"Created via Telegram"}> // <Tooltip placement="topLeft" title={"Created via Telegram"}>
// <img src={tgIcon} alt="" style={{ width: 20, height: 20 }} /> // <img src={tgIcon} alt="" style={{ width: 20, height: 20 }} />
// </Tooltip> // </Tooltip>
// )
// )} // )}
// </div> // </div>
// ), // ),
@ -327,31 +330,43 @@ const TaskTable = ({
{ {
title: "Created at", title: "Created at",
dataIndex: "created", dataIndex: "created",
width: "15%", width: "10%",
key: "10", key: "10",
// responsive: ["xxl"], // responsive: ["xxl"],
ellipsis: { ellipsis: {
showTitle: false, showTitle: false,
}, },
render: (note: string, record: TTask) => ( render: (note: string) => (
<Tooltip placement="topLeft" title={note}>
{note}
</Tooltip>
),
},
{
title: "Source",
dataIndex: "source",
width: "6%",
key: "1",
ellipsis: {
showTitle: false,
},
render: (text: any, record: TTask) => (
<div <div
style={{ style={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
justifyContent: "start", justifyContent: "space-around",
gap: 5,
}} }}
> >
<Tooltip placement="topLeft" title={note}> {record?.via_telegram ? (
{note} <Tooltip placement="topLeft" title={"Created via Telegram"}>
</Tooltip> <img src={tgIcon} alt="" style={{ width: 20, height: 20 }} />
<div> </Tooltip>
{record?.via_telegram && ( ) : (
<Tooltip placement="topLeft" title={"Created via Telegram"}> <Tooltip placement="topLeft" title={"Created via Taskboard"}>
<img src={tgIcon} alt="" style={{ width: 20, height: 20 }} /> <img src={webIcon} alt="" style={{ width: 20, height: 20 }} />
</Tooltip> </Tooltip>
)} )}
</div>
</div> </div>
), ),
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Loading…
Cancel
Save