Default Social Activity tab to Mastodon

This commit is contained in:
svemagie
2026-03-08 05:53:01 +01:00
parent 722ff22328
commit 5277766ea3
2 changed files with 4 additions and 2 deletions
@@ -1,7 +1,8 @@
{# Social Feed Widget - Tabbed Bluesky/Mastodon #}
{% if (blueskyFeed and blueskyFeed.length) or (mastodonFeed and mastodonFeed.length) %}
<is-land on:visible>
<div class="widget" x-data="{ activeTab: 'bluesky' }">
{% set defaultSocialTab = "mastodon" if mastodonFeed and mastodonFeed.length else "bluesky" %}
<div class="widget" x-data="{ activeTab: '{{ defaultSocialTab }}' }">
<h3 class="widget-title">Social Activity</h3>
{# Tab buttons #}
@@ -1,7 +1,8 @@
{# Social Feed Widget - Tabbed Bluesky/Mastodon #}
{% if (blueskyFeed and blueskyFeed.length) or (mastodonFeed and mastodonFeed.length) %}
<is-land on:visible>
<div class="widget" x-data="{ activeTab: 'bluesky' }">
{% set defaultSocialTab = "mastodon" if mastodonFeed and mastodonFeed.length else "bluesky" %}
<div class="widget" x-data="{ activeTab: '{{ defaultSocialTab }}' }">
<h3 class="widget-title">Social Activity</h3>
{# Tab buttons #}