From 399f63cef648ebc5cd23cd93fd57d38ab4c3532c Mon Sep 17 00:00:00 2001 From: DimDz <70445835+DimDz@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:28:31 +0300 Subject: [PATCH 1/2] Update boardBody.css --- client/components/boards/boardBody.css | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/client/components/boards/boardBody.css b/client/components/boards/boardBody.css index 077a22843..cb091b57d 100644 --- a/client/components/boards/boardBody.css +++ b/client/components/boards/boardBody.css @@ -168,11 +168,28 @@ color: #fff !important; } /* Modal Styles */ +.modal { + display: none; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 9999; + background-color: rgba(0, 0, 0, 0.5); + width: 100%; + height: 100%; +} .modal-dialog { display: flex; justify-content: center; align-items: center; - height: 70%; + height: 25%; /* Adjust the height to make it smaller */ + position: relative; + margin: 10% auto; /* This margin will help center the modal vertically */ + max-width: 400px; /* Adjust the max-width to make it smaller */ + background-color: #fff; + border-radius: 5px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); } .modal-header { display: flex; @@ -203,4 +220,5 @@ top: 5px; right: 5px; font-size: 25px; + cursor: pointer; } From be8374d100d151fd93bed1582f5d03aa463679a4 Mon Sep 17 00:00:00 2001 From: DimDz <70445835+DimDz@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:30:42 +0300 Subject: [PATCH 2/2] Update boardBody.js --- client/components/boards/boardBody.js | 64 ++++++++++++++++----------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 484e9ac22..3bf585fc8 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -417,35 +417,37 @@ BlazeComponent.extendComponent({ revertFunc(); } }, - select: function(startDate) { + select: function (startDate) { const currentBoard = Utils.getCurrentBoard(); const currentUser = ReactiveCache.getCurrentUser(); - const $modal = $(` -