fix: align settings to center

This commit is contained in:
Tine 2024-05-14 21:47:09 +02:00
parent c153fe1b8f
commit a5b6325339
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -8,7 +8,7 @@
<div
class="mx-8 mt-8 max-w-screen-xl lg:mt-20 grid grid-cols-1 lg:grid-cols-[min-content_minmax(0,1fr)] gap-8"
class="mx-8 mt-8 max-w-screen-xl lg:mt-20 grid grid-cols-1 lg:grid-cols-[min-content_minmax(0,1fr)] gap-8 self-center"
>
<ul class="sidebar">
{{ range .SettingsSidebar }}
@ -18,14 +18,26 @@
{{ if $active }}aria-current="true"{{ end }}
href="{{ .Path }}"
class="{{ if $active }}active{{ end }}"
{{ if eq .Title "Temporal" }}target="_blank" rel="noreferrer noopener"{{ end }}
{{ if eq .Title "Temporal" }}
target="_blank" rel="noreferrer noopener"
{{ end }}
>
{{ .Title }}
{{ if eq .Title "Targets" }}<span class="text-slate-400">(3)</span>{{ end }}
{{ if eq .Title "Monitors" }}<span class="text-slate-400">(3)</span>{{ end }}
{{ if eq .Title "Triggers" }}<span class="text-slate-400">(3)</span>{{ end }}
{{ if eq .Title "Notifications" }}<span class="text-slate-400">(3)</span>{{ end }}
{{ if eq .Title "Worker Groups" }}<span class="text-slate-400">(3)</span>{{ end }}
{{ if eq .Title "Targets" }}
<span class="text-slate-400">(3)</span>
{{ end }}
{{ if eq .Title "Monitors" }}
<span class="text-slate-400">(3)</span>
{{ end }}
{{ if eq .Title "Triggers" }}
<span class="text-slate-400">(3)</span>
{{ end }}
{{ if eq .Title "Notifications" }}
<span class="text-slate-400">(3)</span>
{{ end }}
{{ if eq .Title "Worker Groups" }}
<span class="text-slate-400">(3)</span>
{{ end }}
</a>
</li>
{{ end }}