Stop showing source URLs in the Sources list — they were breaking the layout
A long RSS/Google News URL with no natural wrap points would overflow its grid column and break the whole row layout. The URL is still visible (and editable) via the edit form — the list row now only shows a status line when there's something to say (poll result, error, or a just-cleared note).
This commit is contained in:
@@ -220,21 +220,21 @@
|
||||
</button>
|
||||
<div>
|
||||
<div class="name">{source.name}</div>
|
||||
<div
|
||||
class="sub"
|
||||
class:error={source.lastError && !justPolled && !justCleared}
|
||||
class:success={justPolled?.id === source.id || justCleared?.id === source.id}
|
||||
>
|
||||
{#if justCleared?.id === source.id}
|
||||
✓ cleared {justCleared.items} item(s), {justCleared.articles} article(s)
|
||||
{:else if justPolled?.id === source.id}
|
||||
{justPolled.count > 0 ? `✓ ${justPolled.count} new item(s)` : '✓ up to date, nothing new'}
|
||||
{:else if source.lastError}
|
||||
last poll failed · {source.lastError}
|
||||
{:else}
|
||||
{source.url}
|
||||
{/if}
|
||||
</div>
|
||||
{#if justCleared?.id === source.id || justPolled?.id === source.id || source.lastError}
|
||||
<div
|
||||
class="sub"
|
||||
class:error={source.lastError && !justPolled && !justCleared}
|
||||
class:success={justPolled?.id === source.id || justCleared?.id === source.id}
|
||||
>
|
||||
{#if justCleared?.id === source.id}
|
||||
✓ cleared {justCleared.items} item(s), {justCleared.articles} article(s)
|
||||
{:else if justPolled?.id === source.id}
|
||||
{justPolled.count > 0 ? `✓ ${justPolled.count} new item(s)` : '✓ up to date, nothing new'}
|
||||
{:else if source.lastError}
|
||||
last poll failed · {source.lastError}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<span class="badge">{source.type.toUpperCase()}</span>
|
||||
<span class="cat">{source.category.join(', ')}</span>
|
||||
|
||||
Reference in New Issue
Block a user