From 10151db2295110f71cc00605f6e8ca5dc9f13357 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 6 Dec 2019 17:14:40 +0100 Subject: [PATCH 1/2] Fix card move in Firefox --- client/src/sass/_kanboard.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/client/src/sass/_kanboard.scss b/client/src/sass/_kanboard.scss index 94720dc..a14e555 100644 --- a/client/src/sass/_kanboard.scss +++ b/client/src/sass/_kanboard.scss @@ -8,6 +8,9 @@ width: 100%; height: 100%; display: flex; + flex-direction: row; + align-items: stretch; + justify-content: stretch; // Lanes & > div { @@ -17,6 +20,11 @@ flex-grow: 1; flex-basis: 100%; background-color: transparent; + display: flex; + flex-direction: column; + bottom: 0; + height: 100% !important; + min-height: 100% !important; // Card container & > div > div > div { @@ -27,7 +35,8 @@ } [data-react-beautiful-dnd-droppable] { - height: 100%; + height: calc(100vh) !important; + min-height: calc(100vh) !important; } .kanboard-card { From da6a408634e0edaed32ee2dc65e2ee48ead31278 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 6 Dec 2019 17:15:18 +0100 Subject: [PATCH 2/2] Fix session timeout detection --- client/src/util/gitea.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/util/gitea.js b/client/src/util/gitea.js index 186600c..b8c772a 100644 --- a/client/src/util/gitea.js +++ b/client/src/util/gitea.js @@ -11,14 +11,15 @@ export class GiteaClient { fetchIssues(project, page = 1) { return fetch(`/gitea/api/v1/repos/${project}/issues?page=${page}`) .then(this.assertAuthorization) + .then(this.assertOk) .then(res => res.json()) ; } fetchUserProjects() { return fetch(`/gitea/api/v1/user/repos`) - .then(this.assertOk) .then(this.assertAuthorization) + .then(this.assertOk) .then(res => res.json()) ; } @@ -31,15 +32,15 @@ export class GiteaClient { }, body: JSON.stringify({ labels: [labelID] }), }) - .then(this.assertOk) .then(this.assertAuthorization) + .then(this.assertOk) .then(res => res.json()) } fetchProjectLabels(project) { return fetch(`/gitea/api/v1/repos/${project}/labels`) - .then(this.assertOk) .then(this.assertAuthorization) + .then(this.assertOk) .then(res => res.json()) ; } @@ -48,8 +49,8 @@ export class GiteaClient { return fetch(`/gitea/api/v1/repos/${project}/issues/${issueNumber}/labels/${labelID}`, { method: 'DELETE' }) - .then(this.assertOk) .then(this.assertAuthorization) + .then(this.assertOk) } createIssue(project, title, body, labelID) { @@ -64,8 +65,8 @@ export class GiteaClient { labels: [labelID], }), }) - .then(this.assertOk) .then(this.assertAuthorization) + .then(this.assertOk) .then(res => res.json()) }