diff --git a/frontend/sphinx/widget/templates/widget.html b/frontend/sphinx/widget/templates/widget.html
index f598e917b..8c91f62f2 100644
--- a/frontend/sphinx/widget/templates/widget.html
+++ b/frontend/sphinx/widget/templates/widget.html
@@ -11,19 +11,6 @@
{% for f in w.files %}
{{ f.content }}
{% endfor %}
-
- {% for t in w.files %}
-
- {% endfor %}
-
-
-
-
- {% for t in w.files %}
-
- {% endfor %}
-
-
+
+
+
+ {% for t in w.files %}
+
+ {% endfor %}
+
+
+
+ {% for t in w.files %}
+
+ {% endfor %}
+
{% for b in w.button_group %}
diff --git a/frontend/src/styles/learn.scss b/frontend/src/styles/learn.scss
index a84044124..9cca3e731 100644
--- a/frontend/src/styles/learn.scss
+++ b/frontend/src/styles/learn.scss
@@ -160,6 +160,8 @@ pre.widget {
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
+ margin-bottom: 10px;
+
button {
background-color: inherit;
float: left;
@@ -196,7 +198,6 @@ pre.widget {
padding-left: 13px;
display: block;
margin-top: 0px;
- margin-bottom: 10px;
button {
background-color: transparent;