Skip to content

Commit 5485c9f

Browse files
authored
Revert "ux: touch up tabs" (#22779)
Reverts #22774
1 parent 7b0b813 commit 5485c9f

File tree

4 files changed

+13
-24
lines changed

4 files changed

+13
-24
lines changed

.vscode/docker.code-snippets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
"prefix": ["admonition", "tabs"],
2424
"body": [
2525
"",
26-
"{{< tabs group=\"$1\" >}}",
27-
"{{< tab name=\"$2\">}}",
26+
"{{< tabs >}}",
27+
"{{< tab name=\"$1\">}}",
2828
"",
29-
"$3",
29+
"$2",
3030
"",
3131
"{{< /tab >}}",
32-
"{{< tab name=\"$4\">}}",
32+
"{{< tab name=\"$3\">}}",
3333
"",
34-
"$5",
34+
"$4",
3535
"",
3636
"{{< /tab >}}",
3737
"{{</tabs >}}",

assets/css/components.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,3 @@
101101
.summary-bar {
102102
@apply my-1 mt-4 flex flex-col rounded-sm border-1 border-gray-100 bg-gray-50 p-4 dark:border-gray-800 dark:bg-gray-900;
103103
}
104-
105-
.tabs {
106-
@apply bg-blue/2 rounded-sm p-2;
107-
}
108-
.tablist {
109-
@apply mb-1 border-b border-gray-100 dark:border-gray-800;
110-
}
111-
112-
.tab-item {
113-
@apply inline-block rounded-sm px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-900;
114-
@apply dark:text-gray-200;
115-
}

content/manuals/ai/model-runner/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ You can now use the `docker model` command in the CLI and view and interact with
8383

8484
Models are cached locally.
8585

86-
{{< tabs group="release" >}}
86+
{{< tabs >}}
8787
{{< tab name="From Docker Desktop">}}
8888

8989
1. Select **Models** and select the **Docker Hub** tab.
@@ -99,14 +99,14 @@ Use the [`docker model pull` command](/reference/cli/docker/).
9999

100100
## Run a model
101101

102-
{{< tabs group="release" >}}
102+
{{< tabs >}}
103103
{{< tab name="From Docker Desktop">}}
104104

105105
Select **Models** and select the **Local** tab and click the play button.
106106
The interactive chat screen opens.
107107

108108
{{< /tab >}}
109-
{{< tab name="From the Docker CLI" >}}
109+
{{< tab name="From the Docker CLI">}}
110110

111111
Use the [`docker model run` command](/reference/cli/docker/).
112112

@@ -117,7 +117,7 @@ Use the [`docker model run` command](/reference/cli/docker/).
117117

118118
To troubleshoot potential issues, display the logs:
119119

120-
{{< tabs group="release" >}}
120+
{{< tabs >}}
121121
{{< tab name="From Docker Desktop">}}
122122

123123
Select **Models** and select the **Logs** tab.

layouts/shortcodes/tabs.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
<div
9-
class="tabs"
109
{{ with $group }}
1110
{{ if $persist }}
1211
x-data="{ selected: $persist('{{ $first }}').as('{{ $groupID }}') }"
@@ -20,10 +19,10 @@
2019
{{ end }}
2120
aria-role="tabpanel"
2221
>
23-
<div aria-role="tablist" class="tablist">
22+
<div aria-role="tablist" class="space-x-2">
2423
{{ range (.Store.Get "tabs") }}
2524
<button
26-
class="tab-item"
25+
class="p-1"
2726
:class="selected === '{{ .name | urlize }}' &&
2827
'border-blue border-b-4 dark:border-b-blue-600'"
2928
{{ if $group }}
@@ -37,6 +36,7 @@
3736
</button>
3837
{{ end }}
3938
</div>
39+
<hr class="!mt-0" />
4040
<div>
4141
{{ range (.Store.Get "tabs") }}
4242
<div
@@ -47,4 +47,5 @@
4747
</div>
4848
{{ end }}
4949
</div>
50+
<hr />
5051
</div>

0 commit comments

Comments
 (0)