From c806a836e503c209b02e53ab3f88cbc822263c76 Mon Sep 17 00:00:00 2001 From: Rustin Date: Sat, 28 Mar 2020 15:16:39 +0800 Subject: [PATCH] fix: set codesandbox referrer to no-referrer (#22688) * fix: set referrer to no-referrer * fix: use replace form * refactoring: remove useless code * fix: refine css issue --- site/theme/static/demo.less | 1 + site/theme/static/template.html | 6 +++--- site/theme/template/Content/Demo/index.jsx | 24 +++++++++------------- 3 files changed, 14 insertions(+), 17 deletions(-) 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 @@