Skip to content

Use images as team names #83

Answered by Drarig29
efkay1 asked this question in Q&A
Mar 25, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, you can! First, to display the images, use:

window.bracketsViewer.setParticipantImages(data.participant.map(participant => ({
participantId: participant.id,
imageUrl: 'https://github.githubassets.com/pinned-octocat.svg',
})));

You'll need to have team names even if you don't show them, so you can have names like "Team 1" for example.

After this, you'll need to set some CSS to hide names and make the overall look better. You can make your own custom theme too.

Here is an example:

.brackets-viewer {
  --match-width: 90px;
}

.brackets-viewer h3 {
  padding: 10px 0px;
  white-space:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@efkay1
Comment options

Answer selected by efkay1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants