fix(settings): improved server settings tabs

This commit is contained in:
trashtemp 2021-12-24 22:54:46 +01:00
parent 5169066772
commit 9b4619cbd1
No known key found for this signature in database
GPG key ID: D1F0DB65081B0FC6
3 changed files with 11 additions and 11 deletions

View file

@ -66,14 +66,13 @@ const PlaceholderBase = styled.div`
animation-duration: 3s; animation-duration: 3s;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-timing-function: ease-in-out; animation-timing-function: ease-in-out;
margin-left: 30px;
margin-top: 5px;
} }
.placeholder { .placeholder {
justify-content: center; justify-content: center;
text-align: center; text-align: center;
margin: auto; margin: auto;
padding: 12px;
.primary { .primary {
color: var(--secondary-foreground); color: var(--secondary-foreground);

View file

@ -50,7 +50,7 @@ export default observer(() => {
<GenericSettings <GenericSettings
pages={[ pages={[
{ {
category: <Category variant="uniform" text={server.name} />, category: <div>{server.name}</div>,
id: "overview", id: "overview",
icon: <InfoCircle size={20} />, icon: <InfoCircle size={20} />,
title: ( title: (
@ -66,6 +66,13 @@ export default observer(() => {
hideTitle: true, hideTitle: true,
}, },
{ {
id: "roles",
icon: <FlagAlt size={20} />,
title: <Text id="app.settings.server_pages.roles.title" />,
hideTitle: true,
},
{
category: "User Management",
id: "members", id: "members",
icon: <Group size={20} />, icon: <Group size={20} />,
title: ( title: (
@ -84,12 +91,6 @@ export default observer(() => {
icon: <UserX size={20} />, icon: <UserX size={20} />,
title: <Text id="app.settings.server_pages.bans.title" />, title: <Text id="app.settings.server_pages.bans.title" />,
}, },
{
id: "roles",
icon: <FlagAlt size={20} />,
title: <Text id="app.settings.server_pages.roles.title" />,
hideTitle: true,
},
]} ]}
children={ children={
<Switch> <Switch>

View file

@ -486,7 +486,7 @@
} }
.entry > span > span { .entry > span > span {
gap: 12px; gap: 8px;
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
@ -501,7 +501,7 @@
} }
> img { > img {
height: 32px !important; height: 28px !important;
} }
} }