Skip to content

Commit

Permalink
fix(css): only 100% for standalone trame
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Dec 30, 2024
1 parent c6aa040 commit 4f38ef4
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions examples/test-css.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "45f18f4b-08c2-4160-ba0b-58180c32d7a0",
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"plt.plot([1,2,3,4])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "64e00c8c-e4fb-4e27-a32d-40756ee6b568",
"metadata": {},
"outputs": [],
"source": [
"from trame.app.demo import Cone\n",
"\n",
"app = Cone()\n",
"await app.ui.ready\n",
"\n",
"app.ui"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "057fbbfa-6e11-40a9-8c14-b9a1aaa37df0",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
2 changes: 1 addition & 1 deletion style/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://jupyterlab.readthedocs.io/en/stable/developer/css.html
*/

.jp-OutputArea-child {
.jp-LinkedOutputView .jp-OutputArea-child:has(iframe[id*=trame__template]) {
height: 100%;
}

Expand Down

0 comments on commit 4f38ef4

Please sign in to comment.