From 7d0dbb26ed89fe9cef515c42b6aba8fe962d883b Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:26:16 +0300 Subject: [PATCH 1/3] fix(editing): use post instead of get fixes #1224 --- Web/static/js/al_api.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Web/static/js/al_api.js b/Web/static/js/al_api.js index 6422ebbd..7ac9c805 100644 --- a/Web/static/js/al_api.js +++ b/Web/static/js/al_api.js @@ -42,8 +42,22 @@ window.OVKAPI = new class { return } - const url = `/method/${method}?auth_mechanism=roaming&${new URLSearchParams(params).toString()}&v=5.200` - const res = await fetch(url) + const form_data = new FormData + Object.entries(params).forEach(fd => { + form_data.append(fd[0], fd[1]) + }) + + const __url_params = new URLSearchParams + __url_params.append("v", "5.200") + if(window.openvk.current_id != 0) { + __url_params.append("auth_mechanism", "roaming") + } + + const url = `/method/${method}?${__url_params.toString()}` + const res = await fetch(url, { + method: "POST", + body: form_data, + }) const json_response = await res.json() if(json_response.response) { From 00b408c2996e82ef52531cec109659ef07831ea7 Mon Sep 17 00:00:00 2001 From: ayato <58212796+ayaaop@users.noreply.github.com> Date: Tue, 4 Feb 2025 20:48:57 +0500 Subject: [PATCH 2/3] fix(locale-en): change the phrasing for undoing a friend request (#1228) "friends_leave_in_flw" is used to reject someone's request. This string is used to cancel an outgoing request. --- locales/en.strings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.strings b/locales/en.strings index ee9f20a7..ae2bc52d 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -318,7 +318,7 @@ "follower" = "Follower"; "friends_add" = "Add to friends"; "friends_delete" = "Remove from friends"; -"friends_reject" = "Reject request"; +"friends_reject" = "Cancel request"; "friends_accept" = "Accept request"; "friends_leave_in_flw" = "Leave in followers"; "friends_add_msg" = "Now you're friends."; From 6d721eb8b9a26df5aafd674b9ad715ae1bd4b403 Mon Sep 17 00:00:00 2001 From: ayato <58212796+ayaaop@users.noreply.github.com> Date: Sun, 16 Feb 2025 18:21:46 +0500 Subject: [PATCH 3/3] fix(messagebox): make dialogue content scrollable and remove `height` from dialogue header and action boxes (#1230) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes dialogue boxes get too long and end up going off the screen, making the content impossible to see. This change fixes that by allowing the dialogue content to scroll. It also removes some height restrictions from the header and action sections since they didn’t seem to serve a clear purpose (to me) and might have been causing layout issues. --- Web/static/css/dialog.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/static/css/dialog.css b/Web/static/css/dialog.css index 11c1ddb8..44892fb2 100644 --- a/Web/static/css/dialog.css +++ b/Web/static/css/dialog.css @@ -38,7 +38,6 @@ body.dimmed > .dimmer #absolute_territory { } .ovk-diag-head { - height: 25%; padding: 5px; background-color: #757575; border-bottom: 1px solid #3e3e3e; @@ -49,11 +48,12 @@ body.dimmed > .dimmer #absolute_territory { .ovk-diag-body { padding: 20px; + overflow-y: auto; + max-height: 80vh } .ovk-diag-action { padding: 10px; - height: 25%; background-color: #d4d4d4; text-align: right; }