🎨 Fix 5 Whys agent layout to match other agent templates

- Move 'How it works' widget to sidebar position (below wallet card)
- Add wallet card component to chat template layout
- Use consistent grid layout: main chat widget + sidebar
- Maintains chat functionality while improving UI consistency
- Now matches standard agent template structure

Fixes layout inconsistency where 'How it works' was at bottom instead of sidebar.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-08-03 09:31:23 +05:30
parent 7f3b678d39
commit e6ab0d0f37

View File

@ -337,6 +337,10 @@ document.body.setAttribute('data-session-id', '{{ chat_session.session_id }}');
<!-- Quick Agent Access Panel Component -->
{% include "components/quick_agents_panel.html" %}
<!-- Main Agent Grid -->
<div class="agent-grid">
<!-- Chat Widget -->
<div class="agent-widget widget-large" style="flex: 1; margin-right: clamp(0px, var(--spacing-lg), 2vw);">
{% if user.is_authenticated %}
{% if user.wallet_balance >= agent.price or chat_session %}
<!-- Session Info -->
@ -457,10 +461,19 @@ document.body.setAttribute('data-session-id', '{{ chat_session.session_id }}');
</div>
</div>
{% endif %}
</div>
<!-- Sidebar with Wallet and How It Works -->
<div class="agent-sidebar">
{% if user.is_authenticated %}
<!-- Wallet Card -->
{% include "components/wallet_card.html" %}
{% endif %}
<!-- How It Works Widget -->
{% include "components/how_it_works_widget.html" with steps="agents" %}
</div>
</div>
</div>
{% endblock %}
{% block extra_js %}