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

Gap on the right #639

Open
edan-bainglass opened this issue May 30, 2023 · 2 comments
Open

Gap on the right #639

edan-bainglass opened this issue May 30, 2023 · 2 comments

Comments

@edan-bainglass
Copy link
Member

Jupyter defines in the output_subarea CSS class a max-width of 100% - 14ex. As far as I can tell, this is the cause of the white space on the right of AiiDAlab apps. One can bypass this by adding in the app's notebooks the following lines:

from IPython.display import display, HTML
display(HTML("<style>.output_subarea { max-width:100% !important; }</style>"))

This is a bit annoying though. Anyone aware of another solution?

@edan-bainglass
Copy link
Member Author

Better

%%html

<style>

.output_subarea { 
    max-width:100% !important
}

</style>

@danielhollas
Copy link
Contributor

@edan-bainglass If you agree I'll move this issue to AWB, where we could put the CSS rule in the default set now that you added the CSS loading.

@danielhollas danielhollas transferred this issue from aiidalab/aiidalab Oct 23, 2024
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