mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 09:00:57 -05:00
fix(header): server header rewrite
This commit is contained in:
parent
3a92cf06c3
commit
c655a59979
1 changed files with 11 additions and 0 deletions
|
@ -40,6 +40,7 @@ const ServerBanner = styled.div`
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -105,6 +106,16 @@ export default observer(({ server }: Props) => {
|
||||||
) : undefined}
|
) : undefined}
|
||||||
</div>
|
</div>
|
||||||
<div className="test">{server.name}</div>
|
<div className="test">{server.name}</div>
|
||||||
|
{(server.permission & ServerPermission.ManageServer) >
|
||||||
|
0 && (
|
||||||
|
<div className="actions">
|
||||||
|
<Link to={`/server/${server._id}/settings`}>
|
||||||
|
<IconButton>
|
||||||
|
<Cog size={20} />
|
||||||
|
</IconButton>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</ServerBanner>
|
</ServerBanner>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue