Skip to content

Commit

Permalink
Address comments + Fix server connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Papel committed Dec 29, 2024
1 parent 6d4f4bb commit 48b64e9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions client/src/components/chatMessage.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,6 @@
.chat-message.warning {
background-color: #660000;
}
.grave-message {
border: .13rem solid var(--background-border-color);
border-bottom-color: var(--background-border-shadow-color);
border-right-color: var(--background-border-shadow-color);
border-radius: .5rem;
margin: .13rem;
padding: .25rem;
}

.kira-guess-results {
display: flex;
Expand Down
5 changes: 3 additions & 2 deletions client/src/components/gameModeSettings/OutlineSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { DragAndDrop } from "../DragAndDrop";
import { GameModeContext } from "./GameModesEditor";
import Select, { SelectOptionsSearch } from "../Select";
import StyledText from "../StyledText";
import { Button } from "../Button";

type RoleOutlineSelectorProps = {
roleOutline: RoleOutline,
Expand Down Expand Up @@ -199,9 +200,9 @@ export function OutlineListSelector(props: {

return <section className="graveyard-menu-colors selector-section">
<h2>{translate("menu.lobby.roleList")}: {roleList.length}</h2>
{!props.disabled && <button onClick={simplify}>
{(props.disabled !== true) && <Button onClick={simplify}>
<Icon>filter_list</Icon> {translate("simplify")}
</button>}
</Button>}
<div className="role-list-setter-list">
<DragAndDrop
items={roleList}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/useHooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function deepEqual<T>(a: T, b: T): boolean {
const bothAreObjects =
a && b && typeof a === "object" && typeof b === "object";

return Boolean(
return (
bothAreObjects &&
Object.keys(a).length === Object.keys(b).length &&
Object.entries(a).every(([k, v]) => deepEqual(v, b[k as keyof T]))
Expand Down
1 change: 0 additions & 1 deletion client/src/menu/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,5 @@
.settings-menu .menu-list {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
2 changes: 1 addition & 1 deletion client/src/menu/spectator/SpectatorGameScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function SpectatorGameScreen(): ReactElement {
<HeaderMenu chatMenuNotification={false}/>
</div>
<GameScreenMenus />
{mobile && <MenuButtons chatMenuNotification={false}/>}
{mobile === true && <MenuButtons chatMenuNotification={false}/>}
</div>
</MenuControllerContext.Provider>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/resources/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"address": "ws://192.168.1.16:8081"
"address": "ws://localhost:8081"
}

0 comments on commit 48b64e9

Please sign in to comment.