change title of player options menu, increase size of kebab

This commit is contained in:
AlecM33
2023-08-04 01:09:59 -04:00
parent 879df5645a
commit 90fa6f0850
3 changed files with 3 additions and 2 deletions

View File

@@ -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>

View File

@@ -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');

View File

@@ -18,7 +18,7 @@
}
.lobby-player img, .spectator img {
height: 18px;
height: 22px;
margin: 0 8px;
cursor: pointer;
padding: 5px;