diff --git a/client/src/components/Server/ExpansionsBar.tsx b/client/src/components/Server/ExpansionsBar.tsx
index 1b051f7..d3f501f 100644
--- a/client/src/components/Server/ExpansionsBar.tsx
+++ b/client/src/components/Server/ExpansionsBar.tsx
@@ -1,12 +1,4 @@
-import { AddCircleTwoTone } from '@mui/icons-material';
-import {
- Box,
- IconButton,
- ToggleButton,
- ToggleButtonGroup,
- Tooltip,
- useTheme,
-} from '@mui/material';
+import { Box, ToggleButton, ToggleButtonGroup, Tooltip } from '@mui/material';
import { ServerData } from '../../data/ServerData';
const expansionButtons = [
@@ -61,12 +53,9 @@ type ExpansionBarProps = { server: ServerData };
export default function ExpansionBar({ server }: ExpansionBarProps) {
const { expansions } = server;
- const theme = useTheme();
const addons = ['acp', 'amk', 'asa', 'abyssea', 'voidwatch', 'rov', 'tvr'];
-
let enabledAddons = addons.filter((prop) => expansions[prop]);
-
enabledAddons = enabledAddons.map((prop) => {
if (prop === 'abyssea' || prop === 'voidwatch') {
return prop.charAt(0).toUpperCase() + prop.slice(1);
@@ -76,42 +65,46 @@ export default function ExpansionBar({ server }: ExpansionBarProps) {
return (
-
- {expansionButtons}
-
- {enabledAddons.length !== 0 && (
-
{enabledAddons.join('\n')}
+ )
+ }
+ placement="right"
+ disableInteractive
+ arrow
+ >
+
-
-
-
-
- )}
+ {expansionButtons}
+ {enabledAddons.length !== 0 && (
+
+ +
+
+ )}
+
+
);
}
diff --git a/client/src/pages/About.tsx b/client/src/pages/About.tsx
index 532cc74..a0cfcf9 100644
--- a/client/src/pages/About.tsx
+++ b/client/src/pages/About.tsx
@@ -144,24 +144,6 @@ MAIN.ENABLE_TVR`;
http://play.myserver.com/api/).
-
-
- What if my server isn't running LSB?
-
- alpha(theme.palette.text.primary, 0.87)}
- >
- If you're not on LSB, you could fake the API response.
- Right now the only required settings are MAIN.SERVER_NAME
- , MAIN.MAX_LEVEL, and LOGIN.LOGIN_LIMIT.
- You'll want to look at the LSB settings and serve whatever
- relevant changes you've made using the LSB equivalent.
- Settings should be served at /api/settings and total
- active sessions should be served at /api/sessions.
-
-
How can I add a link to the server website?
@@ -195,6 +177,23 @@ MAIN.ENABLE_TVR`;
+
+
+ What if my server isn't running LSB?
+
+ alpha(theme.palette.text.primary, 0.87)}
+ >
+ If you're not running LSB, you could fake the API response.
+ You'll want to look at the LSB settings and serve whatever
+ relevant changes you've made using the LSB equivalent, the
+ above listed settings at minimum. Settings should be served at{' '}
+ /api/settings and total active sessions should be served
+ at /api/sessions.
+
+