diff --git a/internal/http/html/static/css/input.css b/internal/http/html/static/css/input.css index fd42ca7f5..0e2fed72b 100644 --- a/internal/http/html/static/css/input.css +++ b/internal/http/html/static/css/input.css @@ -43,7 +43,7 @@ @apply text-blue-600 } .widget { - @apply flex flex-col gap-4 place-content-between border border-black mt-3 p-2; + @apply flex flex-col gap-3 place-content-between border border-black mt-3 p-2; } .widget > div:first-child { @apply flex gap-2 items-baseline pb-2; @@ -69,4 +69,7 @@ th, td { @apply p-2; } + .tag { + @apply text-sm rounded-lg bg-blue-800 text-white font-semibold p-1 + } } diff --git a/internal/http/html/static/css/output.css b/internal/http/html/static/css/output.css index 1f424804f..e9257e38b 100644 --- a/internal/http/html/static/css/output.css +++ b/internal/http/html/static/css/output.css @@ -551,7 +551,7 @@ select { display: flex; flex-direction: column; place-content: space-between; - gap: 1rem; + gap: 0.75rem; border-width: 1px; --tw-border-opacity: 1; border-color: rgb(0 0 0 / var(--tw-border-opacity)); @@ -601,6 +601,18 @@ th, td { padding: 0.5rem; } +.tag { + border-radius: 0.5rem; + --tw-bg-opacity: 1; + background-color: rgb(30 64 175 / var(--tw-bg-opacity)); + padding: 0.25rem; + font-size: 0.875rem; + line-height: 1.25rem; + font-weight: 600; + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + *, ::before, ::after { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; @@ -776,6 +788,10 @@ th, td { margin-bottom: 1.25rem; } +.mb-1 { + margin-bottom: 0.25rem; +} + .mb-2 { margin-bottom: 0.5rem; } @@ -976,10 +992,6 @@ th, td { border-radius: 9999px; } -.rounded-lg { - border-radius: 0.5rem; -} - .border { border-width: 1px; } diff --git a/internal/http/html/static/templates/content/workspace_get.tmpl b/internal/http/html/static/templates/content/workspace_get.tmpl index 874790490..6741bf757 100644 --- a/internal/http/html/static/templates/content/workspace_get.tmpl +++ b/internal/http/html/static/templates/content/workspace_get.tmpl @@ -56,20 +56,22 @@
Connected to {{ .Repo }} ({{ $.VCSProvider.CloudConfig }})
{{ end }}
-

Tags

-
- {{ range .Workspace.Tags }} -
- -
- {{ . }} - {{ if $.CanRemoveTags }} - - {{ end }} -
-
- {{ end }} -
+

Tags

+ {{ with .Workspace.Tags }} +
+ {{ range . }} +
+ +
+ {{ . }} + {{ if $.CanRemoveTags }} + + {{ end }} +
+
+ {{ end }} +
+ {{ end }} {{ if .CanAddTags }} {{ template "search-dropdown" .TagsDropdown }} {{ end }} diff --git a/internal/http/html/static/templates/content/workspace_list.tmpl b/internal/http/html/static/templates/content/workspace_list.tmpl index 3cf28f003..bab265dde 100644 --- a/internal/http/html/static/templates/content/workspace_list.tmpl +++ b/internal/http/html/static/templates/content/workspace_list.tmpl @@ -19,7 +19,7 @@ {{ range $k, $v := .TagFilters }}
-
diff --git a/internal/http/html/static/templates/partials/workspace_item.tmpl b/internal/http/html/static/templates/partials/workspace_item.tmpl index 201c23db8..4c50b05eb 100644 --- a/internal/http/html/static/templates/partials/workspace_item.tmpl +++ b/internal/http/html/static/templates/partials/workspace_item.tmpl @@ -6,6 +6,13 @@ {{ template "run-status" . }} {{ end }}
- {{ template "identifier" . }} +
+
+ {{ template "identifier" . }} + {{ range .Tags }} + {{ . }} + {{ end }} +
+
{{ end }}