mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 02:54:10 +00:00
* Fix category dark mode styles * Fix sidebar account tab states * Fix dashboard balance sheet group styles * Fix budget dark mode styles * Fix chart gradient split * Fix prose styles in dark mode * Add back chat nav id for tests
34 lines
930 B
Plaintext
34 lines
930 B
Plaintext
<div data-controller="chat hotkey">
|
|
<%= turbo_frame_tag chat_frame do %>
|
|
<div class="flex flex-col h-full md:p-4">
|
|
<% if @chats.any? %>
|
|
<nav class="mb-6">
|
|
<% back_path = @last_viewed_chat ? chat_path(@last_viewed_chat) : new_chat_path %>
|
|
|
|
<%= render LinkComponent.new(
|
|
variant: "icon",
|
|
icon: "arrow-left",
|
|
href: back_path,
|
|
) %>
|
|
</nav>
|
|
<% end %>
|
|
|
|
<div class="grow flex flex-col">
|
|
<% if @chats.any? %>
|
|
<h1 class="text-xl font-medium mb-6">Chats</h1>
|
|
<div class="space-y-2 px-0.5">
|
|
<%= render @chats %>
|
|
</div>
|
|
<% else %>
|
|
<h1 class="sr-only">Chats</h1>
|
|
<div class="mt-auto py-8">
|
|
<%= render "chats/ai_greeting" %>
|
|
</div>
|
|
|
|
<%= render "messages/chat_form" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|