Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the size of Figma Embeds?

Grant Szalay
July 26, 2023

I love the Embed feature for Figma, however the results are almost unusable because Confluence inserts a massive iFrame.

I want to show frames in their true size.

However, the iFrame used is massive and takes up half the viewport on the page in Confluence.

If I have small image of 3 Avatars in Figma and my frame in Figma is just the size of the Avatars, the iFrame zooms in on these items unrealistically.

AvatarEmbed2.png

If I widen the frame in Figma to be the size of the iFrame in Confluence, the size of the images is correct, however, there's tons of white space above and below.

AvatarEmbed.png

This behavior defeats the purpose of embedding frames from Figma if the only way for me to get true-size is by adding a static image.

How can I get Confluence to display the actual size of my frame from Figma?

2 answers

1 accepted

2 votes
Answer accepted
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 11, 2013
0 votes
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 10, 2013

You can use the HTML Include macro for this. You will need to also configure your whitelist (Confluence Admin->Configuration->Configure Whitelist) to allow you to pull in content from the other site.

Tobias Rapp
December 11, 2013

I have tested both the "HTML Include" Macro that comes with Confluence and the "HTML Include Replace" plugin from the marketplace.

The built-in macro has the problem that relative links are not handled properly (see CONF-6567) and the third-party plugin requires the user to already have access to the external HTML pages. But this is why I wanted to integrate the pages in the first place (a catch-22).

Deleted user
December 11, 2013

If your tool generated HTML content is not protected, just obscurely served, then would including the content from Confluence, and making the space/page not visible to people who aren't logged in address the visibility?

Tobias Rapp
December 11, 2013

What do you mean with "obscurely served"? Just not mentioning the URL outside of the protected Confluence pages? That would be a bit too weak, I guess.

My current thinking is about writing an Apache auth module for the external HTML pages which connects to the Confluence SQL database backend directly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events