fix : team calc and export put to right

This commit is contained in:
2026-09-26 13:44:31 +07:00 Unverified
parent 324321408f
commit 75a47aa14c
3 changed files with 8 additions and 6 deletions
+2 -4
View File
@@ -68,7 +68,6 @@ export function GuideImageExport({
modeSelection = "dialog", modeSelection = "dialog",
additionalOptions, additionalOptions,
previewPosition = "top", previewPosition = "top",
optionsBeforePreview = false,
}: { }: {
children: ReactNode; children: ReactNode;
fileName: string; fileName: string;
@@ -87,7 +86,6 @@ export function GuideImageExport({
modeSelection?: "dialog" | "inline"; modeSelection?: "dialog" | "inline";
additionalOptions?: ReactNode; additionalOptions?: ReactNode;
previewPosition?: "top" | "right"; previewPosition?: "top" | "right";
optionsBeforePreview?: boolean;
}) { }) {
const captureRef = useRef<HTMLDivElement>(null); const captureRef = useRef<HTMLDivElement>(null);
const [captureMode, setCaptureMode] = useState< const [captureMode, setCaptureMode] = useState<
@@ -350,8 +348,8 @@ export function GuideImageExport({
) : ( ) : (
<> <>
{additionalOptions} {additionalOptions}
{optionsBeforePreview ? exportOptions : exportPreview} {exportPreview}
{optionsBeforePreview ? exportPreview : exportOptions} {exportOptions}
</> </>
)} )}
<DialogFooter className="sticky bottom-0"> <DialogFooter className="sticky bottom-0">
+5 -1
View File
@@ -1267,7 +1267,11 @@ function ExtraSection({
guide={guide} guide={guide}
extra={extra} extra={extra}
action={ action={
<GuideImageExport fileName={`${extra.title}.png`} captureClassName="p-0"> <GuideImageExport
fileName={`${extra.title}.png`}
captureClassName="p-0"
previewPosition="right"
>
<ExtraSectionContent guide={guide} extra={extra} exporting /> <ExtraSectionContent guide={guide} extra={extra} exporting />
</GuideImageExport> </GuideImageExport>
} }
+1 -1
View File
@@ -497,7 +497,7 @@ export function TeamSearch({ groups }: { groups: PublicGuide["teamGroups"] }) {
mobileIconOnly mobileIconOnly
showLanguageSelector={false} showLanguageSelector={false}
promptForLanguage promptForLanguage
optionsBeforePreview previewPosition="right"
> >
<TeamExportImage team={team} /> <TeamExportImage team={team} />
</GuideImageExport> </GuideImageExport>