fix : team calc and export put to right
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
@@ -497,7 +497,7 @@ export function TeamSearch({ groups }: { groups: PublicGuide["teamGroups"] }) {
|
||||
mobileIconOnly
|
||||
showLanguageSelector={false}
|
||||
promptForLanguage
|
||||
optionsBeforePreview
|
||||
previewPosition="right"
|
||||
>
|
||||
<TeamExportImage team={team} />
|
||||
</GuideImageExport>
|
||||
|
||||
Reference in New Issue
Block a user