From 951906335adefd160eda3497c046d260a0b6a11f Mon Sep 17 00:00:00 2001 From: Chneemann Date: Sat, 1 Jun 2024 13:35:29 +0200 Subject: [PATCH] clean code --- .../channel-informations.component.scss | 2 +- .../chat-content/chat-content.component.scss | 4 ++-- .../chat-msg-box/chat-msg-box.component.scss | 2 +- .../components/main-chat/info/info.component.scss | 2 +- .../components/main-chat/main-chat.component.scss | 2 +- .../open-send-prv-message-window.component.scss | 2 +- .../show-channel-member.component.scss | 2 +- .../attachments/attachments.component.html | 4 ---- .../attachments/attachments.component.scss | 2 +- .../single-chat/attachments/attachments.component.ts | 8 +++++++- .../single-chat/edit-msg/edit-msg.component.scss | 2 +- .../options-menu/options-menu.component.scss | 2 +- .../reaction-emojis/reaction-emojis.component.scss | 2 +- .../main-chat/single-chat/single-chat.component.scss | 2 +- src/app/components/main/main.component.scss | 2 +- .../secondary-chat/secondary-chat.component.scss | 2 +- .../show-all-users/show-all-users.component.scss | 2 +- .../add-new-channel/add-new-channel.component.scss | 2 +- .../sidebar-channels/sidebar-channels.component.scss | 2 +- .../sidebar-direct-messages-user.component.scss | 5 ++--- src/app/components/sidebar/sidebar.component.scss | 2 +- src/app/interface/channel.interface.ts | 1 + .../edit-user-details.component.scss | 2 +- .../header/edit-user/edit-user.component.scss | 2 +- .../shared/components/header/header.component.scss | 2 +- .../header/search-bar/search-bar.component.scss | 2 +- src/assets/mixins/responsive.scss | 12 ++++++++++++ src/styles.scss | 6 ------ 28 files changed, 45 insertions(+), 37 deletions(-) create mode 100644 src/assets/mixins/responsive.scss diff --git a/src/app/components/main-chat/channel-informations/channel-informations.component.scss b/src/app/components/main-chat/channel-informations/channel-informations.component.scss index 960a915..91ec484 100644 --- a/src/app/components/main-chat/channel-informations/channel-informations.component.scss +++ b/src/app/components/main-chat/channel-informations/channel-informations.component.scss @@ -1,4 +1,4 @@ -@import "./../../../../styles.scss"; +@import "./../../../../assets/mixins/responsive.scss"; .menu { position: absolute; diff --git a/src/app/components/main-chat/chat-content/chat-content.component.scss b/src/app/components/main-chat/chat-content/chat-content.component.scss index 7c08158..8e02997 100644 --- a/src/app/components/main-chat/chat-content/chat-content.component.scss +++ b/src/app/components/main-chat/chat-content/chat-content.component.scss @@ -1,4 +1,4 @@ -@import "../../../../styles.scss"; +@import "../../../../assets/mixins/responsive.scss"; section { display: flex; @@ -52,7 +52,7 @@ section { section { height: calc(100vh - 144px); } - + .privatChatHeight { height: calc(100vh - 158px); } diff --git a/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.scss b/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.scss index d627f6d..f546a5d 100644 --- a/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.scss +++ b/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.scss @@ -1,4 +1,4 @@ -@import "../../../../styles.scss"; +@import "../../../../assets/mixins/responsive.scss"; section { width: auto; diff --git a/src/app/components/main-chat/info/info.component.scss b/src/app/components/main-chat/info/info.component.scss index f1b9e37..06033df 100644 --- a/src/app/components/main-chat/info/info.component.scss +++ b/src/app/components/main-chat/info/info.component.scss @@ -1,4 +1,4 @@ -@import "../../../../styles.scss"; +@import "../../../../assets/mixins/responsive.scss"; section { padding: 32px 48px; diff --git a/src/app/components/main-chat/main-chat.component.scss b/src/app/components/main-chat/main-chat.component.scss index a5ddc60..525ed42 100644 --- a/src/app/components/main-chat/main-chat.component.scss +++ b/src/app/components/main-chat/main-chat.component.scss @@ -1,4 +1,4 @@ -@import "./../../../styles.scss"; +@import "./../../../assets/mixins/responsive.scss"; section { height: 100%; diff --git a/src/app/components/main-chat/show-channel-member/open-send-prv-message-window/open-send-prv-message-window.component.scss b/src/app/components/main-chat/show-channel-member/open-send-prv-message-window/open-send-prv-message-window.component.scss index bdd54d9..2a21946 100644 --- a/src/app/components/main-chat/show-channel-member/open-send-prv-message-window/open-send-prv-message-window.component.scss +++ b/src/app/components/main-chat/show-channel-member/open-send-prv-message-window/open-send-prv-message-window.component.scss @@ -1,4 +1,4 @@ -@import "../../../../../styles.scss"; +@import "../../../../../assets/mixins/responsive.scss"; .darkBackground { position: absolute; diff --git a/src/app/components/main-chat/show-channel-member/show-channel-member.component.scss b/src/app/components/main-chat/show-channel-member/show-channel-member.component.scss index 9da2dbb..1a9122b 100644 --- a/src/app/components/main-chat/show-channel-member/show-channel-member.component.scss +++ b/src/app/components/main-chat/show-channel-member/show-channel-member.component.scss @@ -1,4 +1,4 @@ -@import "../../../../styles.scss"; +@import "../../../../assets/mixins/responsive.scss"; .darkBackground { position: absolute; diff --git a/src/app/components/main-chat/single-chat/attachments/attachments.component.html b/src/app/components/main-chat/single-chat/attachments/attachments.component.html index d69290c..a916f00 100644 --- a/src/app/components/main-chat/single-chat/attachments/attachments.component.html +++ b/src/app/components/main-chat/single-chat/attachments/attachments.component.html @@ -5,7 +5,6 @@