small style adjustments.

This commit is contained in:
fiatjaf
2023-10-25 20:33:30 -03:00
parent 35e9a6da30
commit 19310fbcd2
5 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@
</div>
<div
_="on load
wait 200ms
wait 50ms
get my children
get sortByCount(it) then repeat for c in it call me.appendChild(c) end
get first in me

View File

@@ -90,7 +90,7 @@
</div>
<div class="w-full text-right text-sm text-stone-400">
{{ if not (eq "" .ParentLink) }} In reply to
{{ if not (eq "" .ParentLink) }} in reply to
<span class="text-strongpink">{{ .ParentLink }}</span> {{ end }}
</div>

View File

@@ -129,7 +129,7 @@
<h2 class="text-strongpink text-2xl">Last Notes</h2>
{{range $i, $ee := .LastNotes}}
<a
class="block no-underline my-8 hover:pl-4 hover:-ml-6 hover:border-solid hover:border-l-8 hover:border-l-gray-100 dark:hover:border-l-neutral-800"
class="block no-underline my-8 hover:pl-4 hover:-ml-6 hover:border-solid hover:border-l-8 hover:border-l-gray-100 dark:hover:border-l-zinc-700"
href="/{{$ee.Nevent}}"
>
<div

View File

@@ -101,7 +101,7 @@
<h2 class="text-strongpink text-2xl">Last Notes</h2>
{{range $i, $ee := .LastNotes}}
<a
class="block no-underline my-8 hover:border-solid hover:pl-4 hover:-ml-6 hover:border-l-8 hover:border-l-gray-100 dark:hover:border-l-neutral-800"
class="block no-underline my-8 hover:border-solid hover:pl-4 hover:-ml-6 hover:border-l-8 hover:border-l-gray-100 dark:hover:border-l-zinc-700"
href="/{{$ee.Nevent}}"
>
<div

View File

@@ -244,9 +244,9 @@ func replaceNostrURLsWithTags(matcher *regexp.Regexp, input string) string {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*4)
defer cancel()
name := getNameFromNip19(ctx, nip19)
return fmt.Sprintf(`<a href="/%s" class="bg-lavender dark:bg-garnet"><span class="font-bold">%s</span> (<span class="italic">%s</span>)</a>`, nip19, name, first_chars+"…"+last_chars)
return fmt.Sprintf(`<a href="/%s" class="bg-lavender dark:bg-garnet px-1"><span class="font-bold">%s</span> (<span class="italic">%s</span>)</a>`, nip19, name, first_chars+"…"+last_chars)
} else {
return fmt.Sprintf(`<a href="/%s" class="bg-lavender dark:bg-garnet">%s</a>`, nip19, first_chars+"…"+last_chars)
return fmt.Sprintf(`<a href="/%s" class="bg-lavender dark:bg-garnet px-1">%s</a>`, nip19, first_chars+"…"+last_chars)
}
})
}