Skip to content

Commit

Permalink
Remove font weight override on username list
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 committed Aug 20, 2024
1 parent df28aff commit db8d807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/chat-plugins/auction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ export class Auction extends Rooms.SimpleRoomGame {
let buf = `<span style="font-size: 90%">`;
buf += players.slice(0, max).map(p => {
if (typeof p === 'object') {
return `<username title="Tiers: ${p.tiers?.length ? `${Utils.escapeHTML(p.tiers.join(', '))}` : 'N/A'}"${clickable ? ' class="username"' : ''} style="font-weight: normal">${Utils.escapeHTML(p.name)}</username>`;
return `<username title="Tiers: ${p.tiers?.length ? `${Utils.escapeHTML(p.tiers.join(', '))}` : 'N/A'}"${clickable ? ' class="username"' : ''}>${Utils.escapeHTML(p.name)}</username>`;
}
return `<username${clickable ? ' class="username"' : ''} style="font-weight: normal">${Utils.escapeHTML(p)}</username>`;
return `<username${clickable ? ' class="username"' : ''}>${Utils.escapeHTML(p)}</username>`;
}).join(', ');
if (players.length > max) {
buf += ` <span title="${players.slice(max).map(p => Utils.escapeHTML(typeof p === 'object' ? p.name : p)).join(', ')}">(+${players.length - max})</span>`;
Expand Down

0 comments on commit db8d807

Please sign in to comment.