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

Save aspect ratio of plugin in the Modules page #28

Open
rolandf opened this issue Oct 18, 2022 · 1 comment
Open

Save aspect ratio of plugin in the Modules page #28

rolandf opened this issue Oct 18, 2022 · 1 comment

Comments

@rolandf
Copy link

rolandf commented Oct 18, 2022

When using bootstrap5 via djangocms-frontend, I created a "block" composed of several plugins and then I saved it as a module.
Once listed on the module page the original that had a width and height derived from it's parent div/column/container in the page where it has been designed is distorted in the modules page as the context of the plugin is lost.
Would it be possible to save the height and width of the module at creation time so an additional div with necessary styling would contain the module in the module page so it would keep its aspect ratio.

@fsbraun
Copy link
Member

fsbraun commented Oct 18, 2022

@rolandf I have not looked into this but remember that I had to adapt templates/djangocms_modules/render_module.html to get a meaningful display the modules. Might this also be a way for you, e.g., by wrapping it in an appropriate <div>?

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