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",
additionalOptions,
previewPosition = "top",
optionsBeforePreview = false,
}: {
children: ReactNode;
fileName: string;
@@ -87,7 +86,6 @@ export function GuideImageExport({
modeSelection?: "dialog" | "inline";
additionalOptions?: ReactNode;
previewPosition?: "top" | "right";
optionsBeforePreview?: boolean;
}) {
const captureRef = useRef<HTMLDivElement>(null);
const [captureMode, setCaptureMode] = useState<
@@ -350,8 +348,8 @@ export function GuideImageExport({
) : (
<>
{additionalOptions}
{optionsBeforePreview ? exportOptions : exportPreview}
{optionsBeforePreview ? exportPreview : exportOptions}
{exportPreview}
{exportOptions}
</>
)}
<DialogFooter className="sticky bottom-0">
+5 -1
View File
@@ -1267,7 +1267,11 @@ function ExtraSection({
guide={guide}
extra={extra}
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 />
</GuideImageExport>
}
+1 -1
View File
@@ -497,7 +497,7 @@ export function TeamSearch({ groups }: { groups: PublicGuide["teamGroups"] }) {
mobileIconOnly
showLanguageSelector={false}
promptForLanguage
optionsBeforePreview
previewPosition="right"
>
<TeamExportImage team={team} />
</GuideImageExport>