feat : updae
This commit is contained in:
@@ -171,7 +171,7 @@ export function GuideImageExport({
|
||||
disabled = false,
|
||||
allowWithoutNotes = true,
|
||||
captureClassName,
|
||||
buttonLabel = "ส่งออกภาพ",
|
||||
buttonLabel = "บันทึกภาพ",
|
||||
mobileIconOnly = false,
|
||||
language: controlledLanguage,
|
||||
showLanguageSelector = true,
|
||||
@@ -229,7 +229,7 @@ export function GuideImageExport({
|
||||
type="button"
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className={mobileIconOnly ? "max-sm:size-7 max-sm:px-0 max-sm:has-data-[icon=inline-start]:pl-0" : undefined}
|
||||
className={mobileIconOnly ? "max-sm:size-11 max-sm:px-0 max-sm:has-data-[icon=inline-start]:pl-0" : "max-sm:min-h-11"}
|
||||
disabled={capturing || disabled}
|
||||
onClick={() => {
|
||||
if (modeSelection === "direct") setCaptureMode("with-notes");
|
||||
@@ -242,7 +242,7 @@ export function GuideImageExport({
|
||||
<DownloadIcon data-icon="inline-start" />
|
||||
)}
|
||||
<span className={mobileIconOnly ? "sr-only sm:not-sr-only" : undefined}>
|
||||
{capturing ? "กำลังส่งออก…" : label}
|
||||
{capturing ? "กำลังบันทึก…" : label}
|
||||
</span>
|
||||
</Button>
|
||||
);
|
||||
@@ -299,9 +299,9 @@ export function GuideImageExport({
|
||||
);
|
||||
|
||||
const exportAction = (
|
||||
<Button type="button" disabled={capturing || disabled} onClick={requestCapture}>
|
||||
<Button type="button" className="max-sm:min-h-11" disabled={capturing || disabled} onClick={requestCapture}>
|
||||
{capturing ? <Spinner data-icon="inline-start" /> : <DownloadIcon data-icon="inline-start" />}
|
||||
{capturing ? "กำลังส่งออก…" : buttonLabel}
|
||||
{capturing ? "กำลังบันทึก…" : buttonLabel}
|
||||
</Button>
|
||||
);
|
||||
|
||||
@@ -465,8 +465,8 @@ export function GuideImageExport({
|
||||
)}
|
||||
>
|
||||
<DialogHeader>
|
||||
<DialogTitle>ตั้งค่าการส่งออกภาพ</DialogTitle>
|
||||
<DialogDescription>เลือกตัวเลือกที่ต้องการก่อนส่งออกภาพ</DialogDescription>
|
||||
<DialogTitle>ตั้งค่าภาพที่จะบันทึก</DialogTitle>
|
||||
<DialogDescription>เลือกตัวเลือกที่ต้องการก่อนบันทึกภาพ</DialogDescription>
|
||||
</DialogHeader>
|
||||
{previewPosition === "right" ? (
|
||||
<div className="grid min-h-0 gap-4 lg:grid-cols-[16rem_minmax(0,1fr)]">
|
||||
|
||||
Reference in New Issue
Block a user