Browse Source

Profile: move bot label

imwald
Nuša Pukšič 3 days ago
parent
commit
8d06cd69e2
  1. 4
      assets/styles/01-base/typography.css
  2. 11
      templates/partial/_author-section.html.twig

4
assets/styles/01-base/typography.css

@ -57,6 +57,10 @@ h1:not(.brand) > a:hover { @@ -57,6 +57,10 @@ h1:not(.brand) > a:hover {
font-weight: 500;
}
h1 .tag {
vertical-align: text-top;
}
h2 {
font-size: 2.2rem;
}

11
templates/partial/_author-section.html.twig

@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
<section>
<h1><twig:Atoms:NameOrNpub :author="author" :npub="npub"></twig:Atoms:NameOrNpub></h1>
{% if author.bot is defined %}
<div class="tags">
<h1>
<twig:Atoms:NameOrNpub :author="author" :npub="npub"></twig:Atoms:NameOrNpub>
{% if author.bot is defined %}
<span class="tag">bot</span>
</div>
{% endif %}
{% endif %}
</h1>
{% if author.lud16 is defined and author.lud16 %}
<twig:Molecules:ZapButton

Loading…
Cancel
Save