From fc7f316cc9783f22738c4e2b16e5f8023cf54b10 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sat, 25 May 2024 18:11:04 +0200 Subject: [PATCH] fix --- static/style.css | 7 +++++-- views/chat.html | 5 +++++ views/layouts/main.html | 7 ------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/static/style.css b/static/style.css index 72a5c0e..9a7ef81 100644 --- a/static/style.css +++ b/static/style.css @@ -1,4 +1,7 @@ -body, +body { + padding-bottom: 150px; +} + html { height: 100%; margin: 0; @@ -38,7 +41,7 @@ html { max-width: 780px; margin: auto; width: 95%; - margin-bottom: 180px; + box-sizing: border-box; } /* Primary color */ diff --git a/views/chat.html b/views/chat.html index b627798..f90a5e9 100644 --- a/views/chat.html +++ b/views/chat.html @@ -55,6 +55,11 @@ }, 200); } + function updateIcon(icon, ConversationAreaId) { + var selectedIcon = document.getElementById('selectedIcon-' + ConversationAreaId); + selectedIcon.src = icon; + } + function handleTextareaKeydown(event) { if (event.metaKey && event.key === 'Enter') { // Check if the cursor is in the textarea diff --git a/views/layouts/main.html b/views/layouts/main.html index b72272a..2ad6fbd 100644 --- a/views/layouts/main.html +++ b/views/layouts/main.html @@ -23,13 +23,6 @@ {{embed}} - -