From d60c56cdbf818040119ba004f30b5b821300a2db Mon Sep 17 00:00:00 2001 From: nizune <9-nizune@users.noreply.gitlab.insrt.uk> Date: Mon, 28 Jun 2021 10:32:55 +0200 Subject: [PATCH] Fix: More fixes for the message box and settings --- index.html | 34 +++++++++---------- .../common/messaging/MessageBox.tsx | 3 +- src/pages/settings/panes/Experiments.tsx | 2 +- src/pages/settings/panes/Panes.module.scss | 10 ++++++ 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index c83d63f4..11218d2d 100644 --- a/index.html +++ b/index.html @@ -1,19 +1,19 @@ - - - - - - REVOLT - - -
- - - - + + + + + + REVOLT + + +
+ + + + \ No newline at end of file diff --git a/src/components/common/messaging/MessageBox.tsx b/src/components/common/messaging/MessageBox.tsx index 62bfea5f..e122b089 100644 --- a/src/components/common/messaging/MessageBox.tsx +++ b/src/components/common/messaging/MessageBox.tsx @@ -54,6 +54,7 @@ const Base = styled.div` const Blocked = styled.div` display: flex; + align-items: center; padding: 14px 0; user-select: none; font-size: .875rem; @@ -87,7 +88,7 @@ function MessageBox({ channel, draft, dispatcher }: Props) { return ( - + diff --git a/src/pages/settings/panes/Experiments.tsx b/src/pages/settings/panes/Experiments.tsx index 41e5885d..5d3d6ee9 100644 --- a/src/pages/settings/panes/Experiments.tsx +++ b/src/pages/settings/panes/Experiments.tsx @@ -11,7 +11,7 @@ interface Props { export function Component(props: Props & WithDispatcher) { return ( -
+

diff --git a/src/pages/settings/panes/Panes.module.scss b/src/pages/settings/panes/Panes.module.scss index d1c2a504..307dc37f 100644 --- a/src/pages/settings/panes/Panes.module.scss +++ b/src/pages/settings/panes/Panes.module.scss @@ -373,3 +373,13 @@ display: flex; flex-direction: column; } + +.experiments { /* TOFIX: Center the "No new experiments available at this time" text without having a scrollbar */ + height: 100%; + .empty { + display: flex; + justify-content: center; + align-items: center; + height: 100%; + } +} \ No newline at end of file