Skip to content

Commit 1e51d3d

Browse files
committed
Add screenshot
1 parent b86806d commit 1e51d3d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ If you want to try it, you need to create an account on [OpenAI](https://beta.op
1111

1212
**Contributions are welcome to improve the code and the UX.**
1313

14+
## Screenshots
15+
16+
<img width="1317" alt="screenshot" src="https://user-images.githubusercontent.com/400034/222999892-69957a41-acc6-49ac-9dd1-b2de8a89105c.png">
17+
1418
## Installation
1519

1620
Clone the repository and install the dependencies:

templates/components/chatbox.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</div>
5757

5858
<div class="send-box">
59-
<form action="{{ path('submit') }}" method="post" data-turbo-frame="chatbox" data-turbo-action="replace">
59+
<form action="{{ path('submit') }}" method="post" data-turbo-frame="{{ this.conversation.isNew() ? 'container' : 'chatbox' }}" data-turbo-action="replace">
6060
{{ form_widget(this.form.message) }}
6161
{{ form_widget(this.form.id) }}
6262
{# @todo would be nice to be able to add an icon. See https://stackoverflow.com/a/31275381/450789 #}

templates/index.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!-- char-area -->
66
<section class="message-area">
77
<div class="container">
8+
<turbo-frame id="container">
89
<div class="row">
910
<div class="col-12">
1011
<div class="chat-area">
@@ -29,7 +30,7 @@
2930

3031
</div>
3132
</div>
32-
</div>
33+
</turbo-frame>
3334
</div>
3435
</section>
3536
<!-- char-area -->

0 commit comments

Comments
 (0)