fix : overhual unnatural text
This commit is contained in:
@@ -98,7 +98,6 @@ import {
|
||||
weaponTypeIconPath,
|
||||
type OverviewRole,
|
||||
} from "@/lib/overview-image";
|
||||
import { exportText, withoutNotesFileName } from "@/lib/guides/export-text";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type Character = {
|
||||
@@ -140,7 +139,7 @@ const blendModeItems: Array<{ value: OverviewBlendMode; label: string }> = [
|
||||
...overviewBlendModes,
|
||||
];
|
||||
|
||||
const DISCLAIMER = exportText("disclaimer");
|
||||
const DISCLAIMER = "ไม่สามารถเอาไปเปรียบเทียบกับการคำนวณของ TC ท่านอื่นๆได้\nเพราะแต่ละคนใช้สแตทในการคำนวณที่ไม่เหมือนกัน\nและตารางที่เห็นอาจมีการเปลี่ยนแปลงได้ในอนาคต";
|
||||
|
||||
function DraggablePosterLayer({
|
||||
id,
|
||||
@@ -999,7 +998,7 @@ export function OverviewImageGenerator({
|
||||
}
|
||||
}
|
||||
|
||||
async function download(includeNotes = true) {
|
||||
async function download() {
|
||||
const node = captureRef.current;
|
||||
if (
|
||||
!node ||
|
||||
@@ -1029,15 +1028,14 @@ export function OverviewImageGenerator({
|
||||
const url = URL.createObjectURL(blob);
|
||||
const link = document.createElement("a");
|
||||
link.href = url;
|
||||
const fileName = overviewFileName(character.key, displayRole);
|
||||
link.download = includeNotes ? fileName : withoutNotesFileName(fileName);
|
||||
link.download = overviewFileName(character.key, displayRole);
|
||||
document.body.append(link);
|
||||
link.click();
|
||||
link.remove();
|
||||
window.setTimeout(() => URL.revokeObjectURL(url), 0);
|
||||
toast.success(exportText("overviewDownloaded"));
|
||||
toast.success("ดาวน์โหลดภาพ Overview แล้ว");
|
||||
} catch {
|
||||
toast.error(exportText("exportError"));
|
||||
toast.error("ส่งออกภาพไม่สำเร็จ กรุณาลองอีกครั้ง");
|
||||
} finally {
|
||||
setExporting(false);
|
||||
}
|
||||
@@ -1347,16 +1345,7 @@ export function OverviewImageGenerator({
|
||||
) : (
|
||||
<DownloadIcon data-icon="inline-start" />
|
||||
)}
|
||||
{exporting ? exportText("exporting") : exportText("downloadPng", { width: 3000, height: 3000 })}
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="w-full"
|
||||
disabled={!ready || exporting}
|
||||
onClick={() => void download(false)}
|
||||
>
|
||||
<DownloadIcon data-icon="inline-start" />
|
||||
{exportText("withoutNote")}
|
||||
{exporting ? "กำลังส่งออก…" : "ดาวน์โหลด PNG 3000×3000"}
|
||||
</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user