Browse Source

More fixes, sigh

imwald
Nuša Pukšič 4 months ago
parent
commit
bbfb1abc7f
  1. 5
      assets/styles/layout.css
  2. 8
      templates/components/Organisms/Comments.html.twig
  3. 2
      templates/components/Organisms/ZineList.html.twig

5
assets/styles/layout.css

@ -152,6 +152,10 @@ aside header { @@ -152,6 +152,10 @@ aside header {
grid-template-columns: auto;
}
main {
margin-top: 60px;
}
nav header,
aside header {
display: block;
@ -167,7 +171,6 @@ aside header { @@ -167,7 +171,6 @@ aside header {
gap: .5rem;
position: sticky;
top: 61px; /* below main header */
background: var(--color-bg);
z-index: 1050;
padding: .5rem 0;
}

8
templates/components/Organisms/Comments.html.twig

@ -3,7 +3,13 @@ @@ -3,7 +3,13 @@
<div class="card comment {% if item.kind is defined and item.kind == '9735' %}zap-comment{% endif %}">
<div class="metadata">
<p>
<twig:Molecules:UserFromNpub ident="{{ item.kind == '9735' ? zappers[item.id] : item.pubkey }}" />
{% if item.kind != '9735' %}
<twig:Molecules:UserFromNpub ident="{{ item.pubkey }}" />
{% elseif zappers[item.id] %}
<twig:Molecules:UserFromNpub ident="{{ zappers[item.id] }}" />
{% else %}
<em>Unknown</em>
{% endif %}
</p>
<small>{{ item.created_at|date('F j Y') }}</small>
</div>

2
templates/components/Organisms/ZineList.html.twig

@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
{% endfor %}
{% endif %}
{% if categoryTags is not empty %}
<ul class="list-unstyled d-flex flex-row gap-3 justify-content-center mt-3">
<ul class="list-unstyled d-flex flex-row flex-wrap gap-3 justify-content-center mt-3">
{% for catTag in categoryTags %}
<li class="list-inline-item"><twig:Molecules:CategoryLink :coordinate="catTag" :mag="item.slug" /></li>
{% endfor %}

Loading…
Cancel
Save