Skip to content

Commit a8d6ffe

Browse files
committed
try to keep it all inside the tab
1 parent ef89c3a commit a8d6ffe

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

website_and_docs/layouts/shortcodes/gh-codeblock.html

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,26 @@
4949
{{ $codeSnippet = delimit (first $numOfLines (after $fromLine $splitContent)) "\n" }}
5050
{{ end }}
5151

52-
{{ highlight $codeSnippet $language }}
52+
<div class="gh-codeblock-wrapper">
53+
<div class="highlight">
54+
{{ highlight $codeSnippet $language }}
55+
</div>
5356

54-
{{ if $hasFragment }}
55-
<details class="mt-2">
56-
<summary>Show full example</summary>
57-
<div class="pt-2">{{ highlight $content $language }}</div>
58-
</details>
59-
{{ end }}
57+
{{ if $hasFragment }}
58+
<details class="mt-3">
59+
<summary>Show full example</summary>
60+
<div class="pt-2 highlight">
61+
{{ highlight $content $language }}
62+
</div>
63+
</details>
64+
{{ end }}
6065

61-
<div class="text-end pb-2">
62-
<a href="{{- $webUrl -}}" target="_blank">
63-
<i class="fas fa-external-link-alt pl-2"></i>
66+
<div class="text-end pb-2 mt-2">
67+
<a href="{{- $webUrl -}}" target="_blank">
68+
<i class="fas fa-external-link-alt pl-2"></i>
6469
<strong>View full example on GitHub</strong>
65-
</a>
70+
</a>
71+
</div>
6672
</div>
6773
{{ else }}
6874
{{ partial "github-content.html" }}

0 commit comments

Comments
 (0)