Skip to content

Commit

Permalink
Fix chat-history panel scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEtchells committed Jul 30, 2024
1 parent ab87586 commit 455c6f6
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions django_app/redbox_app/templates/chats.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ <h1 class="govuk-visually-hidden">Chats</h1>

<div class="iai-panel govuk-!-margin-top-6">
<h2 class="govuk-heading-s">Recent chats</h2>

{% for date_group, chats in chat_history_grouped_by_date_group %}
<h3 class="rb-chat-history__date_group govuk-body-s govuk-!-font-weight-bold govuk-!-margin-bottom-1">{{ date_group }}</h3>
<ul class="govuk-list govuk-list--spaced iai-panel__scrollable">
{% for chat in chats %}
<li class="govuk-!-margin-bottom-1">
<a class="govuk-link govuk-body-s" href="{{url('chats', chat.id)}}">{{ chat.name }}</a>
</li>
<div class="iai-panel__scrollable">
{% for date_group, chats in chat_history_grouped_by_date_group %}
<h3 class="rb-chat-history__date_group govuk-body-s govuk-!-font-weight-bold govuk-!-margin-bottom-1">{{ date_group }}</h3>
<ul class="govuk-list govuk-list--spaced">
{% for chat in chats %}
<li class="govuk-!-margin-bottom-1">
<a class="govuk-link govuk-body-s" href="{{url('chats', chat.id)}}">{{ chat.name }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
</ul>
{% endfor %}
</div>
</div>

<document-selector class="iai-panel iai-panel govuk-!-margin-top-6 govuk-!-margin-bottom-9">
Expand Down

0 comments on commit 455c6f6

Please sign in to comment.