Fix heights
This commit is contained in:
parent
7e37d597b4
commit
2e23740a44
2 changed files with 41 additions and 35 deletions
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
|
@ -104,28 +104,33 @@
|
|||
</header>
|
||||
<main class="grid gap-4 grid-cols-[repeat(auto-fill,_minmax(300px,_1fr))] mt-2">
|
||||
{% for group, feeds in data %}
|
||||
<section class="overflo-y-auto max-h-96">
|
||||
<section>
|
||||
<h2 class="text-xl">{{ group }}</h2>
|
||||
<div class="overflow-y-auto max-h-96">
|
||||
{% for feed in feeds %}
|
||||
<details class="group">
|
||||
<summary class="cursor-pointer p-2 rounded-xl mt-1 transition-colors group-has-[.has-recent]:border-2 group-has-[.has-recent]:border-arc-title hover:bg-arc-hover flex flex-row items-center">
|
||||
<summary
|
||||
class="cursor-pointer p-2 rounded-xl mt-1 transition-colors group-has-[.has-recent]:border-2 group-has-[.has-recent]:border-arc-title hover:bg-arc-hover flex flex-row items-center">
|
||||
{% if feed.hasRecent %}
|
||||
<div class="text-xl mr-2" aria-label="Feed has recent items">✳︎</div>
|
||||
{% endif %}
|
||||
<div class="w-full">
|
||||
<div>{{ feed.title }}</div>
|
||||
<div class="text-sm whitespace-nowrap text-ellipsis w-11/12 overflow-hidden text-arc-subtitle" title="{{feed.feed}}">({{ feed.feed }})</div>
|
||||
<div class="text-sm whitespace-nowrap text-ellipsis w-11/12 overflow-hidden text-arc-subtitle"
|
||||
title="{{feed.feed}}">({{ feed.feed }})</div>
|
||||
</div>
|
||||
</summary>
|
||||
<ul class=" overflow-y-auto list-none ml-6">
|
||||
{% for item in feed.items %}
|
||||
<li class="{% if item.isRecent %}has-recent {% endif %} flex flex-row items-center p-2 rounded-xl mt-1 transition-colors hover:bg-arc-hover">
|
||||
<li
|
||||
class="{% if item.isRecent %}has-recent {% endif %} flex flex-row items-center p-2 rounded-xl mt-1 transition-colors hover:bg-arc-hover">
|
||||
{% if item.isRecent %}
|
||||
<div class="text-xl mr-2" aria-label="Item is recent">✳︎</div>
|
||||
{% endif %}
|
||||
<div>
|
||||
<div>
|
||||
<a class="no-underline hover:text-inherit" href="{{ item.link }}" target="_blank" rel="noopener norefferer nofollow">{{
|
||||
<a class="no-underline hover:text-inherit" href="{{ item.link }}" target="_blank"
|
||||
rel="noopener norefferer nofollow">{{
|
||||
item.title | safe}}</a>
|
||||
</div>
|
||||
<div class="text-sm text-arc-subtitle">
|
||||
|
|
@ -142,6 +147,7 @@
|
|||
</ul>
|
||||
</details>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Reference in a new issue