Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Joomla 4.0] Mosaico build screen clipped #611

Open
vingle opened this issue Sep 6, 2023 · 4 comments
Open

[Joomla 4.0] Mosaico build screen clipped #611

vingle opened this issue Sep 6, 2023 · 4 comments

Comments

@vingle
Copy link

vingle commented Sep 6, 2023

Mosaico is loaded in an iFrame, with a fixed position that is lost behind the Joomla 4 UI:

image

Because J4 has an expanding/shrinking sidebar, then the following would fix this with an extended sidebar:

#crm-mosaico { left: 288px; top: 66px; width: calc(100vw - 288px); height: calc(100vh - 66px); }

and then this if not extended:

#crm-mosaico { left: 48px; width: calc(100vw - 48px); }

But there's no helpful Joomla classes to differentiate between these states via a parent selector (ie something targetable). One option would be container queries, but maybe the fixed position of the iframe creates issues on other CMSs too (ie anything with a sidebar?) and it's preferable to address that..?

@thoni56
Copy link

thoni56 commented Oct 8, 2024

This is still a problem. Additionally which can be seen in the image, the adaptive calculation also needs to be applied to the height as Mosaicos own menu is hidden under Joomlas admin top menu.

@vingle
Copy link
Author

vingle commented Oct 8, 2024

Hmm, maybe the simplest fix is to change the markup to limit Mosaico to #crm-container and not let it 100% width to the full screen?

@thoni56
Copy link

thoni56 commented Oct 9, 2024

Using the developer tools to move the iframe into #crm-container and changing its height and width to 100% seems to almost make it work. At least useable.

@vingle
Copy link
Author

vingle commented Oct 9, 2024

That sounds good @thoni56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants