monra commited on
Commit
aad1892
1 Parent(s): 5b21948

Some responsiveness improvements

Browse files
client/css/conversation.css CHANGED
@@ -69,9 +69,10 @@
69
 
70
  #send-button {
71
  position: absolute;
72
- bottom: 40%;
73
  right: 10px;
74
  z-index: 1;
 
75
  }
76
 
77
  #cursor {
@@ -126,13 +127,6 @@
126
  border-radius: 10px;
127
  }
128
 
129
- @media screen and (max-width: 990px) {
130
- .conversation {
131
- width: 100%;
132
- height: 90%;
133
- }
134
- }
135
-
136
  @media screen and (max-height: 720px) {
137
  .conversation.box {
138
  height: 70%;
 
69
 
70
  #send-button {
71
  position: absolute;
72
+ bottom: 25%;
73
  right: 10px;
74
  z-index: 1;
75
+ padding: 16px;
76
  }
77
 
78
  #cursor {
 
127
  border-radius: 10px;
128
  }
129
 
 
 
 
 
 
 
 
130
  @media screen and (max-height: 720px) {
131
  .conversation.box {
132
  height: 70%;
client/css/message.css CHANGED
@@ -28,6 +28,7 @@
28
  .message .content {
29
  display: flex;
30
  flex-direction: column;
 
31
  gap: 18px;
32
  }
33
 
 
28
  .message .content {
29
  display: flex;
30
  flex-direction: column;
31
+ width: 90%;
32
  gap: 18px;
33
  }
34
 
client/js/chat.js CHANGED
@@ -56,7 +56,7 @@ const ask_gpt = async (message) => {
56
  message_input.innerHTML = ``;
57
  message_input.innerText = ``;
58
 
59
- add_conversation(window.conversation_id, message.substr(0, 20));
60
  window.scrollTo(0, 0);
61
  window.controller = new AbortController();
62
 
 
56
  message_input.innerHTML = ``;
57
  message_input.innerText = ``;
58
 
59
+ add_conversation(window.conversation_id, message.substr(0, 16));
60
  window.scrollTo(0, 0);
61
  window.controller = new AbortController();
62