fix : team calc and export put to right
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user