From c655a59979d5aefc035608a03a0c00353a0f7ebb Mon Sep 17 00:00:00 2001 From: trashtemp <96388163+trashtemp@users.noreply.github.com> Date: Mon, 27 Dec 2021 15:13:36 +0100 Subject: [PATCH] fix(header): server header rewrite --- src/components/common/ServerHeader.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/common/ServerHeader.tsx b/src/components/common/ServerHeader.tsx index eeb17e27..c17e46a3 100644 --- a/src/components/common/ServerHeader.tsx +++ b/src/components/common/ServerHeader.tsx @@ -40,6 +40,7 @@ const ServerBanner = styled.div` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + flex-grow: 1; } } `; @@ -105,6 +106,16 @@ export default observer(({ server }: Props) => { ) : undefined}
{server.name}
+ {(server.permission & ServerPermission.ManageServer) > + 0 && ( +
+ + + + + +
+ )}