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

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

@ -3,7 +3,13 @@
<div class="card comment {% if item.kind is defined and item.kind == '9735' %}zap-comment{% endif %}"> <div class="card comment {% if item.kind is defined and item.kind == '9735' %}zap-comment{% endif %}">
<div class="metadata"> <div class="metadata">
<p> <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> </p>
<small>{{ item.created_at|date('F j Y') }}</small> <small>{{ item.created_at|date('F j Y') }}</small>
</div> </div>

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

@ -27,7 +27,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if categoryTags is not empty %} {% 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 %} {% for catTag in categoryTags %}
<li class="list-inline-item"><twig:Molecules:CategoryLink :coordinate="catTag" :mag="item.slug" /></li> <li class="list-inline-item"><twig:Molecules:CategoryLink :coordinate="catTag" :mag="item.slug" /></li>
{% endfor %} {% endfor %}

Loading…
Cancel
Save