feat: update codex live chat workflow
This commit is contained in:
@@ -2,7 +2,10 @@ import {
|
||||
ArrowLeftOutlined,
|
||||
CloseOutlined,
|
||||
CopyOutlined,
|
||||
DownloadOutlined,
|
||||
DownOutlined,
|
||||
FullscreenExitOutlined,
|
||||
FullscreenOutlined,
|
||||
UpOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import {
|
||||
@@ -2510,6 +2513,7 @@ export function WorklogEvidenceTab({
|
||||
const [worklogContents, setWorklogContents] = useState<Record<string, string>>({});
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [previewModalItem, setPreviewModalItem] = useState<EvidenceAttachmentItem | null>(null);
|
||||
const [isPreviewModalExpanded, setIsPreviewModalExpanded] = useState(false);
|
||||
|
||||
async function handleCopyText(text: string) {
|
||||
try {
|
||||
@@ -2642,10 +2646,13 @@ export function WorklogEvidenceTab({
|
||||
open={Boolean(previewModalItem)}
|
||||
title={previewModalItem?.title ?? 'Preview'}
|
||||
footer={null}
|
||||
width={1120}
|
||||
rootClassName="plan-board-page__evidence-modal"
|
||||
width={isPreviewModalExpanded ? 'calc(100vw - 32px)' : 1120}
|
||||
rootClassName={`plan-board-page__evidence-modal${
|
||||
isPreviewModalExpanded ? ' plan-board-page__evidence-modal--expanded' : ''
|
||||
}`}
|
||||
onCancel={() => {
|
||||
setPreviewModalItem(null);
|
||||
setIsPreviewModalExpanded(false);
|
||||
}}
|
||||
closeIcon={<CloseOutlined />}
|
||||
>
|
||||
@@ -2660,18 +2667,30 @@ export function WorklogEvidenceTab({
|
||||
onClick={() => void handleCopyText(previewModalItem.value)}
|
||||
/>
|
||||
{previewModalItem.linkUrl ? (
|
||||
<Button type="link" href={previewModalItem.linkUrl} target="_blank" rel="noreferrer">
|
||||
링크 열기
|
||||
</Button>
|
||||
<Button
|
||||
aria-label="다운로드"
|
||||
icon={<DownloadOutlined />}
|
||||
href={previewModalItem.linkUrl}
|
||||
target={previewModalItem.kind === 'preview' ? '_blank' : undefined}
|
||||
rel={previewModalItem.kind === 'preview' ? 'noreferrer' : undefined}
|
||||
download={previewModalItem.kind === 'preview' ? undefined : true}
|
||||
/>
|
||||
) : null}
|
||||
<Button
|
||||
aria-label={isPreviewModalExpanded ? '최대화 해제' : '최대화'}
|
||||
icon={isPreviewModalExpanded ? <FullscreenExitOutlined /> : <FullscreenOutlined />}
|
||||
onClick={() => {
|
||||
setIsPreviewModalExpanded((previous) => !previous);
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
aria-label="닫기"
|
||||
icon={<CloseOutlined />}
|
||||
onClick={() => {
|
||||
setPreviewModalItem(null);
|
||||
setIsPreviewModalExpanded(false);
|
||||
}}
|
||||
>
|
||||
닫기
|
||||
</Button>
|
||||
/>
|
||||
</Space>
|
||||
</Flex>
|
||||
<div className="plan-board-page__evidence-modal-body">
|
||||
|
||||
Reference in New Issue
Block a user