From 45eaa21ed6c36f96ade3dd4f2f840fff6230b7b5 Mon Sep 17 00:00:00 2001 From: Dielee Date: Tue, 18 May 2021 09:11:30 +0200 Subject: [PATCH] Optimize UI --- Frontend/history.js | 16 ++++++++-------- Frontend/scann.js | 21 ++++++++++----------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/Frontend/history.js b/Frontend/history.js index d90e95d..495378b 100644 --- a/Frontend/history.js +++ b/Frontend/history.js @@ -317,7 +317,7 @@ class MainElement extends LitElement { return html `
- updateResponseJson(item[0], "category", this)} @keyup=${e => closeMobileKeyboard(e, this, "category" + item[0])}> + updateResponseJson(item[0], "category", this)} @keyup=${e => closeMobileKeyboard(e, this, "category" + item[0])}> updateResponseJson(item[0], "article", this)} @keyup=${e => closeMobileKeyboard(e, this, "article" + item[0])}> updateResponseJson(item[0], "articleSum", this)} @keyup=${e => closeMobileKeyboard(e, this, "sum" + item[0])}> @@ -429,8 +429,8 @@ class MainElement extends LitElement { width: 98%; display: inline-grid; grid-auto-flow: column; - grid-template-columns: 115px calc(100% - 225px) auto auto; - column-gap: 6px; + grid-template-columns: 129px calc(100% - 225px) auto auto; + column-gap: 0px; } .foundArticles @@ -448,7 +448,7 @@ class MainElement extends LitElement { .itemListCategory { - width: 120px; + width: 135px; } .itemListArticle @@ -469,7 +469,7 @@ class MainElement extends LitElement { .assumeArticleSum { display: inline-block; - margin-left: calc(100% - 190px); + margin-left: calc(100% - 185px); padding-right: 0px; padding-top: 1px; } @@ -478,7 +478,7 @@ class MainElement extends LitElement { { font-family: Roboto; font-size: small; - margin-left: calc(100% - 89px); + margin-left: calc(100% - 84px); color: red; } @@ -486,13 +486,13 @@ class MainElement extends LitElement { { font-family: Roboto; font-size: small; - margin-left: calc(100% - 95px); + margin-left: calc(100% - 82px); color: lightgrey; } .deleteButton { display: none; - margin-top: 20px; + margin-top: 35px; } .purchase diff --git a/Frontend/scann.js b/Frontend/scann.js index 1a204ce..f3b09d5 100644 --- a/Frontend/scann.js +++ b/Frontend/scann.js @@ -319,7 +319,7 @@ checkValidAndSave(e) return html `
- updateResponseJson(item[0], "category", this)} @keyup=${e => closeMobileKeyboard(e, this, "category" + item[0])}> + updateResponseJson(item[0], "category", this)} @keyup=${e => closeMobileKeyboard(e, this, "category" + item[0])}> updateResponseJson(item[0], "article", this)} @keyup=${e => closeMobileKeyboard(e, this, "article" + item[0])}> updateResponseJson(item[0], "articleSum", this)} @keyup=${e => closeMobileKeyboard(e, this, "sum" + item[0])}> @@ -436,14 +436,13 @@ checkValidAndSave(e) width: 98%; display: inline-grid; grid-auto-flow: column; - grid-template-columns: 115px calc(100% - 225px) auto auto; - column-gap: 6px; + grid-template-columns: 135px calc(100% - 232px) auto auto; + column-gap: 2px; } .itemListCategories { - width: 120px; - margin-top: 1px; + width: 135px; } .foundArticles @@ -460,7 +459,7 @@ checkValidAndSave(e) .deleteButton { display: none; - margin-top: 20px; + margin-top: 35px; } .itemListSum @@ -472,18 +471,18 @@ checkValidAndSave(e) { font-family: Roboto; font-size: small; - margin-left: calc(100% - 89px); + margin-left: calc(100% - 84px); color: red; } - + .differenceGrey { font-family: Roboto; font-size: small; - margin-left: calc(100% - 95px); + margin-left: calc(100% - 82px); color: lightgrey; } - + .uploadToast { --paper-toast-background-color: green; } @@ -514,7 +513,7 @@ checkValidAndSave(e) .assumeArticleSum { display: inline-block; - margin-left: calc(100% - 232px); + margin-left: calc(100% - 228px); padding-right: 0px; padding-top: 1px; }