Merge branch 'codex/fix/board-footer-subscriptions-empty-style'

This commit is contained in:
Tommaso Casaburi
2026-05-21 18:00:05 +07:00
3 changed files with 15 additions and 1 deletions
+1
View File
@@ -604,6 +604,7 @@ describe('Board', () => {
expect(latestLocation).toBe('/subs');
expect(container.textContent).toContain('not_subscribed_to_any_board');
expect(container.querySelector('[role="status"]')?.className).toContain('searchNothingFound');
});
it('links empty mod feeds to account import settings', async () => {
+11
View File
@@ -17,6 +17,17 @@
padding: 15px 0 20px 5px;
}
.searchNothingFound {
color: red;
display: block;
margin: 0;
padding: 1em 0;
text-align: center;
font-size: x-large;
font-weight: bold;
line-height: normal;
}
.morePostsSuggestion {
color: var(--body-font-color);
padding-bottom: 5px;
+3 -1
View File
@@ -133,7 +133,9 @@ const BoardFooter = ({
{communityState === 'failed' ? (
<span className='red'>{communityState}</span>
) : isInSubscriptionsView && subscriptionsLength === 0 ? (
<span className='red'>{t('not_subscribed_to_any_board')}</span>
<div className={styles.searchNothingFound} role='status'>
{t('not_subscribed_to_any_board')}
</div>
) : isInModView && accountCommunityAddressesLength === 0 ? (
<ModEmptyState />
) : (