From 6a6347c0463aa778df52c7312d7de24e629dabb9 Mon Sep 17 00:00:00 2001 From: Marc Itzenthaler Date: Wed, 27 Sep 2023 11:10:56 +0200 Subject: [PATCH] style: fixed layout for create chat view and group chat info --- src/components/groupChat/CreateChatView.tsx | 146 +++++----- src/components/groupChat/GroupChatInfo.tsx | 55 ++-- .../groupChat/createChat.styles.scss | 2 + .../groupChat/groupChatInfo.styles.scss | 254 ++++++++++++++++++ 4 files changed, 357 insertions(+), 100 deletions(-) create mode 100644 src/components/groupChat/groupChatInfo.styles.scss diff --git a/src/components/groupChat/CreateChatView.tsx b/src/components/groupChat/CreateChatView.tsx index 27380a3df..0eda95270 100644 --- a/src/components/groupChat/CreateChatView.tsx +++ b/src/components/groupChat/CreateChatView.tsx @@ -514,86 +514,84 @@ export const CreateGroupChatView = (props) => {

)} -
-
- + +
+ handleDatePicker(date)} + onFocus={() => setIsDateInputFocus(true)} + onBlur={() => setIsDateInputFocus(false)} + locale="de" + minDate={new Date()} + maxDate={new Date(2999, 12, 31)} + dateFormat="cccccc, dd. MMMM yyyy" /> -
- handleDatePicker(date)} - onFocus={() => setIsDateInputFocus(true)} - onBlur={() => setIsDateInputFocus(false)} - locale="de" - minDate={new Date()} - maxDate={new Date(2999, 12, 31)} - dateFormat="cccccc, dd. MMMM yyyy" - /> - - {translate('groupChat.create.dateInput.label')} - -
-
- handleTimePicker(time)} - onFocus={() => setIsTimeInputFocus(true)} - onBlur={() => setIsTimeInputFocus(false)} - locale="de" - showTimeSelect - showTimeSelectOnly - timeIntervals={15} - timeCaption="Uhrzeit" - dateFormat="HH:mm" - /> - - {translate('groupChat.create.beginDateInput.label')} - -
- - - setSelectedRepetitive(!selectedRepetitive) + + {translate('groupChat.create.dateInput.label')} + +
+
+ handleTimePicker(time)} + onFocus={() => setIsTimeInputFocus(true)} + onBlur={() => setIsTimeInputFocus(false)} + locale="de" + showTimeSelect + showTimeSelectOnly + timeIntervals={15} + timeCaption="Uhrzeit" + dateFormat="HH:mm" /> - {isEditGroupChatMode ? ( -
-
- ) : ( + + {translate('groupChat.create.beginDateInput.label')} + +
+ + + setSelectedRepetitive(!selectedRepetitive) + } + /> + {isEditGroupChatMode ? ( +
+
+ ) : ( +