Skip to content

Commit bd342d9

Browse files
committed
fix button
1 parent 0563bbb commit bd342d9

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,7 @@
6363
<div class="topbar-button w-full flex items-center gap-2" id="search-bar-container">
6464
{{ partialCached "search-bar.html" "-" }}
6565
</div>
66-
<button class="topbar-button w-full flex items-center gap-2"
67-
href="https://hub.docker.com/support/contact"
68-
aria-label="Contact support" class="flex items-center gap-2 w-full">
69-
<span>Contact support</span>
70-
<span class="icon-svg icon-sm">
71-
{{ partial "utils/svg.html" "/icons/headset.svg" }}
72-
</span>
73-
</a>
74-
</button>
66+
{{ partial "contact-support-button.html" .}}
7567
<button
7668
aria-label="Theme switch"
7769
id="theme-switch"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{ $class := "" }}
2+
{{ if eq . "notext" }}
3+
{{ $class = "hidden lg:inline" }}
4+
{{ end }}
5+
<a class="topbar-button w-full flex items-center gap-2"
6+
href="https://hub.docker.com/support/contact"
7+
aria-label="Contact support">
8+
<span class="{{ $class }}">Contact support</span>
9+
<span class="icon-svg icon-sm">
10+
{{ partial "utils/svg.html" "/icons/headset.svg" }}
11+
</span>
12+
</a>

layouts/partials/header.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,7 @@
6262
{{ partialCached "search-bar.html" "-" }}
6363
</div>
6464

65-
<button class="topbar-button" href="https://hub.docker.com/support/contact"
66-
aria-label="Contact support">
67-
<span class="hidden lg:inline">Contact support</span>
68-
<span class="icon-svg icon-sm">
69-
{{ partial "utils/svg.html" "/icons/headset.svg" }}
70-
</span>
71-
</a>
72-
</button>
65+
{{ partial "contact-support-button.html" "notext" }}
7366

7467
<button
7568
aria-label="Theme switch"
@@ -93,4 +86,10 @@
9386
<!-- On sm screens, hide all buttons here (they will be in sidebar) -->
9487
</div>
9588
</div>
89+
</header>
90+
</button>
91+
</div>
92+
<!-- On sm screens, hide all buttons here (they will be in sidebar) -->
93+
</div>
94+
</div>
9695
</header>

0 commit comments

Comments
 (0)