diff --git a/site/theme/static/demo.less b/site/theme/static/demo.less
index 6e24b740bb..32b35f91b4 100644
--- a/site/theme/static/demo.less
+++ b/site/theme/static/demo.less
@@ -341,6 +341,7 @@
}
&-codesandbox {
+ display: inline-block;
width: 20px;
height: 20px;
overflow: hidden;
diff --git a/site/theme/static/template.html b/site/theme/static/template.html
index 31332ba159..b07cd05502 100644
--- a/site/theme/static/template.html
+++ b/site/theme/static/template.html
@@ -22,7 +22,7 @@