From 651fbbd67fc4d0bd43a261fe5bee2c92dd05d15a Mon Sep 17 00:00:00 2001 From: Xamora Date: Mon, 18 Dec 2023 22:18:49 +0100 Subject: [PATCH 1/3] css patch --- frontend/static/css/index.css | 4 ++-- frontend/static/css/search.css | 2 +- frontend/static/js/views/Search.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/static/css/index.css b/frontend/static/css/index.css index b76a0f6..7f286f0 100644 --- a/frontend/static/css/index.css +++ b/frontend/static/css/index.css @@ -1,7 +1,7 @@ body { - margin: 20px; + margin: 0.5em; font-family: 'Quicksand', sans-serif; - font-size: 60px; + font-size: 40px; } a { diff --git a/frontend/static/css/search.css b/frontend/static/css/search.css index 3e88b85..e9165c9 100644 --- a/frontend/static/css/search.css +++ b/frontend/static/css/search.css @@ -45,7 +45,7 @@ } #app #messages { - max-height: 50em; + max-height: 40em; overflow: scroll; overflow-y: scroll; overflow-x: hidden; diff --git a/frontend/static/js/views/Search.js b/frontend/static/js/views/Search.js index 2b3a011..f0bbe78 100644 --- a/frontend/static/js/views/Search.js +++ b/frontend/static/js/views/Search.js @@ -52,6 +52,7 @@ export default class extends AbstractView { // chat if (logged && client.me.user_id != user.user_id) { let add_chat = document.createElement("a"); + add_chat.href = ""; add_chat.id = "add_chat_off"; add_chat.onclick = async () => { if (client.channel != undefined) { From c6f6e216f2abba9c5c0914b25535d736df54791e Mon Sep 17 00:00:00 2001 From: Xamora Date: Mon, 18 Dec 2023 22:27:17 +0100 Subject: [PATCH 2/3] css patch --- frontend/static/css/search.css | 5 +++++ frontend/static/js/views/Search.js | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/static/css/search.css b/frontend/static/css/search.css index e9165c9..6935a5a 100644 --- a/frontend/static/css/search.css +++ b/frontend/static/css/search.css @@ -42,6 +42,11 @@ #app #add_chat_off { text-decoration: underline; + cursor: pointer; +} + +#app #add_chat_on { + cursor: pointer; } #app #messages { diff --git a/frontend/static/js/views/Search.js b/frontend/static/js/views/Search.js index f0bbe78..2b3a011 100644 --- a/frontend/static/js/views/Search.js +++ b/frontend/static/js/views/Search.js @@ -52,7 +52,6 @@ export default class extends AbstractView { // chat if (logged && client.me.user_id != user.user_id) { let add_chat = document.createElement("a"); - add_chat.href = ""; add_chat.id = "add_chat_off"; add_chat.onclick = async () => { if (client.channel != undefined) { From 41a7a6dfb8c5581897d5e21c3f3d97e3b96275b5 Mon Sep 17 00:00:00 2001 From: Xamora Date: Mon, 18 Dec 2023 22:35:42 +0100 Subject: [PATCH 3/3] css patch --- frontend/static/css/index.css | 2 +- frontend/static/css/search.css | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/static/css/index.css b/frontend/static/css/index.css index 2ccaf41..a3a39b6 100644 --- a/frontend/static/css/index.css +++ b/frontend/static/css/index.css @@ -2,7 +2,7 @@ body { margin: 0.5em; font-family: 'Quicksand', sans-serif; - font-size: 40px; + font-size: 30px; } a { diff --git a/frontend/static/css/search.css b/frontend/static/css/search.css index 31dc7bc..ba0dc98 100644 --- a/frontend/static/css/search.css +++ b/frontend/static/css/search.css @@ -6,7 +6,7 @@ #app ul { - font-size: 24em; + font-size: 0.75em; margin: 0.25em 0 0 0; padding: 0 0 0 0; list-style-type: none; @@ -37,7 +37,7 @@ } #app #members { - font-size: 32px; + font-size: 1em; } #app #add_chat_off { @@ -54,14 +54,14 @@ overflow: scroll; overflow-y: scroll; overflow-x: hidden; - font-size: 18px; + font-size: 0.75em; } #app #input_user{ color: green; width: 8.5em; height: 1.1em; - font-size: 18px; + font-size: 0.65em; border: none; outline: none; border-bottom: 0.15em solid green;