mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 15:12:58 +00:00
🎨 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:
parent
7f3b678d39
commit
e6ab0d0f37
@ -337,6 +337,10 @@ document.body.setAttribute('data-session-id', '{{ chat_session.session_id }}');
|
|||||||
<!-- Quick Agent Access Panel Component -->
|
<!-- Quick Agent Access Panel Component -->
|
||||||
{% include "components/quick_agents_panel.html" %}
|
{% 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.is_authenticated %}
|
||||||
{% if user.wallet_balance >= agent.price or chat_session %}
|
{% if user.wallet_balance >= agent.price or chat_session %}
|
||||||
<!-- Session Info -->
|
<!-- Session Info -->
|
||||||
@ -457,10 +461,19 @@ document.body.setAttribute('data-session-id', '{{ chat_session.session_id }}');
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- How It Works Widget -->
|
<!-- Sidebar with Wallet and How It Works -->
|
||||||
{% include "components/how_it_works_widget.html" with steps="agents" %}
|
<div class="agent-sidebar">
|
||||||
</div>
|
{% 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>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block extra_js %}
|
{% block extra_js %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user