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 <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"> <ul class="sidebar">
{{ range .SettingsSidebar }} {{ range .SettingsSidebar }}
@ -18,14 +18,26 @@
{{ if $active }}aria-current="true"{{ end }} {{ if $active }}aria-current="true"{{ end }}
href="{{ .Path }}" href="{{ .Path }}"
class="{{ if $active }}active{{ end }}" 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 }} {{ .Title }}
{{ if eq .Title "Targets" }}<span class="text-slate-400">(3)</span>{{ end }} {{ if eq .Title "Targets" }}
{{ if eq .Title "Monitors" }}<span class="text-slate-400">(3)</span>{{ end }} <span class="text-slate-400">(3)</span>
{{ if eq .Title "Triggers" }}<span class="text-slate-400">(3)</span>{{ end }} {{ end }}
{{ if eq .Title "Notifications" }}<span class="text-slate-400">(3)</span>{{ end }} {{ if eq .Title "Monitors" }}
{{ if eq .Title "Worker Groups" }}<span class="text-slate-400">(3)</span>{{ end }} <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> </a>
</li> </li>
{{ end }} {{ end }}