feat : improve export image dialog

This commit is contained in:
2026-09-20 19:02:46 +07:00 Unverified
parent 71bc247b73
commit bde2f1d09e
5 changed files with 96 additions and 175 deletions
-22
View File
@@ -11,7 +11,6 @@ import { saveGuideOverview } from "@/app/admin/actions";
import { AutosaveStatus } from "@/components/admin/autosave-status";
import { MediaUploader } from "@/components/admin/media-uploader";
import { MaterialPoster, type PosterBlendMode } from "@/components/public/material-poster";
import { GuideImageExport } from "@/components/public/guide-image-export";
import { Button } from "@/components/ui/button";
import {
Card,
@@ -468,27 +467,6 @@ export function GuideOverviewForm({
ลบภาพตัวละคร
</Button>
) : null}
<GuideImageExport
width={1600}
height={2000}
format="png"
disabled={!posterArt.url}
fileName={`${guide.name}-materials.png`}
allowWithoutNotes={false}
captureClassName="p-0"
>
<MaterialPoster
character={guide.character}
characterArtUrl={posterArt.url}
artworkOffsetX={posterArtOffset.x}
artworkOffsetY={posterArtOffset.y}
artworkScale={posterArtScale}
artworkRotation={posterArtRotation}
topColors={posterTopColors}
bottomColors={posterBottomColors}
bleeding={bleeding}
/>
</GuideImageExport>
</div>
<div className="flex flex-col gap-2 rounded-lg border p-3">
<div className="flex items-center justify-between gap-2">