mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
change title of player options menu, increase size of kebab
This commit is contained in:
@@ -147,7 +147,7 @@ export const HTMLFragments = {
|
||||
PLAYER_OPTIONS_MODAL:
|
||||
`<div id='player-options-modal-background' class='modal-background'></div>
|
||||
<div tabindex='-1' id='player-options-modal' class='modal'>
|
||||
<h2>Person Options:</h2>
|
||||
<h2 id="player-options-modal-title"></h2>
|
||||
<div id='player-options-modal-content'></div>
|
||||
<div class='modal-button-container'>
|
||||
<button id='close-player-options-modal-button' class='app-button cancel'>Close</button>
|
||||
|
||||
@@ -178,6 +178,7 @@ export const SharedStateUtil = {
|
||||
const optionsButton = document.createElement('img');
|
||||
const optionsHandler = (e) => {
|
||||
if (e.type === 'click' || e.code === 'Enter') {
|
||||
document.querySelector('#player-options-modal-title').innerText = person.name + globals.USER_TYPE_ICONS[person.userType];
|
||||
document.getElementById('player-options-modal-content').innerHTML = '';
|
||||
const kickOption = document.createElement('button');
|
||||
kickOption.setAttribute('class', 'player-option');
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
|
||||
.lobby-player img, .spectator img {
|
||||
height: 18px;
|
||||
height: 22px;
|
||||
margin: 0 8px;
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
|
||||
Reference in New Issue
Block a user