From 9d0504610644e0d05eb1bcc2d4f7382996da0399 Mon Sep 17 00:00:00 2001 From: brausjonas Date: Fri, 5 May 2023 18:49:02 +0200 Subject: [PATCH] =?UTF-8?q?Calender=20View=20Einheitliche=20R=C3=A4nder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- anwendung/src/components/CalenderView.jsx | 38 ++++++++++++++--------- anwendung/src/pages/index.js | 3 +- anwendung/src/styles/globals.css | 17 +++++----- 3 files changed, 34 insertions(+), 24 deletions(-) diff --git a/anwendung/src/components/CalenderView.jsx b/anwendung/src/components/CalenderView.jsx index db90b20..37018eb 100644 --- a/anwendung/src/components/CalenderView.jsx +++ b/anwendung/src/components/CalenderView.jsx @@ -99,13 +99,10 @@ export default function CalenderView(p) { current = null; } - if(current != null) - { + if (current != null) { let temp = [] - for(let i = 0; i < current_list.length; i++) - { - if(current_list[i] !== current) - { + for (let i = 0; i < current_list.length; i++) { + if (current_list[i] !== current) { temp.push(current_list[i]); } } @@ -183,15 +180,22 @@ export default function CalenderView(p) { return integer + ":" + minutes_string; } + let temp = [] + for (let i = 0; i < 96; i++) { + temp.push(i); + } + return ( -
-
-
Montag
-
Dienstag
-
Mittwoch
-
Donnerstag
-
Freitag
-
Samstag
+
+
+
+
Montag
+
Dienstag
+
Mittwoch
+
Donnerstag
+
Freitag
+
Samstag
+
@@ -202,7 +206,9 @@ export default function CalenderView(p) { {entries["mo"].map(d => (

{internal_to_time(d.start_point)}

@@ -287,6 +293,8 @@ export default function CalenderView(p) {
))}
+ +
) diff --git a/anwendung/src/pages/index.js b/anwendung/src/pages/index.js index a226772..86e6d01 100644 --- a/anwendung/src/pages/index.js +++ b/anwendung/src/pages/index.js @@ -17,8 +17,9 @@ export default function Home(p) { return ( <> -
+
+ ) diff --git a/anwendung/src/styles/globals.css b/anwendung/src/styles/globals.css index 37e0d40..73fb159 100644 --- a/anwendung/src/styles/globals.css +++ b/anwendung/src/styles/globals.css @@ -186,11 +186,14 @@ Popup Calender View */ +::-webkit-scrollbar { + display: none; +} + .calender-container { max-height: 300px; overflow-y: scroll; - border-bottom: 2px solid #5d606e; } .wochen-tag-container @@ -198,11 +201,10 @@ Calender View display: flex; flex-direction: row; justify-content: space-between; - margin-right: 1.5%; height: 25px; - background-color: #5d606e; - border: 2px solid #5d606e; - border-radius: 5px 5px 0 0; + width: 500px; + gap: 2px; + background-color: #363636; } .calender-view @@ -215,13 +217,12 @@ Calender View /* End Test */ - background-color: #5d606e; + background-color: #363636; display: flex; flex-direction: row; align-items: stretch; justify-content: stretch; gap: 2px; - padding: 0 2px 0 2px; user-select: none; } @@ -239,7 +240,7 @@ Calender View { text-align: center; background-color: #f80000; - width: 16%; + width: 100px; color: white; border-radius: 5px; display: flex;