Skip to content

Commit

Permalink
Vertically align chat buttons
Browse files Browse the repository at this point in the history
- Bump to 0.13.1
  • Loading branch information
smathot committed Mar 11, 2024
1 parent ea18d03 commit 880971c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion heymans/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""AI-based chatbot that provides sensible answers based on documentation"""

__version__ = '0.13.0'
__version__ = '0.13.1'
10 changes: 6 additions & 4 deletions heymans/templates/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
<div id="message-box">
<div id="message-container">
<textarea id="message" placeholder="Enter your message"></textarea>
<button title="Send" id="send" disabled><i class="fas fa-paper-plane"></i></button>
<button title="Cancel" id="cancel"><i class="fas fa-stop-circle"></i></button>
<button title="Show menu" id="expand" onclick="app.__vue__.toggleMenu()"><i class="fas fa-bars"></i></button>
<button title="Expand message box" id="expand" onclick="expandMessageBox()"><i class="fas fa-expand"></i></button>
<div id="button-container">
<button title="Send" id="send" disabled><i class="fas fa-paper-plane"></i></button>
<button title="Cancel" id="cancel"><i class="fas fa-stop-circle"></i></button>
<button title="Show menu" id="expand" onclick="app.__vue__.toggleMenu()"><i class="fas fa-bars"></i></button>
<button title="Expand message box" id="expand" onclick="expandMessageBox()"><i class="fas fa-expand"></i></button>
</div>
</div>
</div>
<div id="message-counter" style="text-align: right;"></div>
Expand Down
11 changes: 9 additions & 2 deletions heymans/templates/stylesheet.css.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,23 @@ a:visited {

#message-container {
width: 100%;
display: flex;
align-items: stretch;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
}

#button-container {
display: flex;
flex-direction: column;
align-self: flex-start;
}

textarea#message {
border: none;
width: 80%;
flex-grow: 1;
height: 100%;
}

Expand All @@ -198,7 +206,6 @@ button#cancel,
button#expand,
button#send {
font-size: 1.2em;
float:right;
height:100%;
border: none;
color: #fff;
Expand Down

0 comments on commit 880971c

Please sign in to comment.