Skip to content

Commit 4ae52f1

Browse files
committed
Improve iframe style
1 parent 4586854 commit 4ae52f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/jupyterlite_sphinx.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
CONTENT_DIR = "_contents"
1818
JUPYTERLITE_DIR = "lite"
1919

20+
IFRAME_STYLE = "border-width: 1px; border-style: solid;"
21+
2022

2123
# Used for nodes that do not need to be rendered
2224
def skip(self, node):
@@ -57,7 +59,7 @@ def html(self):
5759

5860
return (
5961
f'<iframe src="{JUPYTERLITE_DIR}/repl/index.html?{options}"'
60-
f'width="{width}" height="{height}"></iframe>'
62+
f'width="{width}" height="{height}" style="{IFRAME_STYLE}"></iframe>'
6163
)
6264

6365

@@ -101,7 +103,7 @@ def html(self):
101103

102104
return (
103105
f'<iframe src="{JUPYTERLITE_DIR}/retro/notebooks/?path={notebook}"'
104-
'width="100%" height=1000px></iframe>'
106+
f'width="100%" height="1000px" style="{IFRAME_STYLE}"></iframe>'
105107
)
106108

107109

0 commit comments

Comments
 (0)