From 4f617a7293922fdce85462009feb7e52770a7e62 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 11 Apr 2022 23:30:41 +0300 Subject: [PATCH] fix for chat shadow --- src/App.js | 5 ++++- src/App.scss | 5 +++++ src/App.vue | 2 +- src/components/chat/chat.scss | 4 +++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 39ef62e7..9cfaf4fa 100644 --- a/src/App.js +++ b/src/App.js @@ -82,8 +82,11 @@ export default { !this.$store.getters.mergedConfig.hideISP && this.$store.state.instance.instanceSpecificPanelContent }, + isChats () { + return this.$route.name === 'chat' || this.$route.name === 'chats' + }, newPostButtonShown () { - if (this.$route.name === 'chat' || this.$route.name === 'chats') return false + if (this.isChats) return false return this.$store.getters.mergedConfig.alwaysShowNewPostButton || this.layoutType === 'mobile' }, showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }, diff --git a/src/App.scss b/src/App.scss index b5411585..31d7fac2 100644 --- a/src/App.scss +++ b/src/App.scss @@ -207,6 +207,11 @@ nav { z-index: 2; } + &.-full-height { + margin-top: 0; + margin-bottom: 0; + } + &.-scrollable { --___paddingIncrease: calc(var(--columnGap) / 2); diff --git a/src/App.vue b/src/App.vue index 094a8ab9..707b91e5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,7 @@
-
+