-
Hi, is it possible to use images instead of team names? I tried html tags but they seem to be interpreted as strings best regards |
Beta Was this translation helpful? Give feedback.
Answered by
Drarig29
Mar 26, 2022
Replies: 1 comment 1 reply
-
Yes, you can! First, to display the images, use: brackets-viewer.js/demo/with-local-storage.html Lines 45 to 48 in 4a69f6c 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: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: var(--match-width);
}
.brackets-viewer .participant .name > img {
width: 2em;
height: 2em;
}
.brackets-viewer .participant .name {
height: 2em;
color: transparent;
text-overflow: clip;
}
.brackets-viewer .participant .name.hint {
text-overflow: ellipsis;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
efkay1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can! First, to display the images, use:
brackets-viewer.js/demo/with-local-storage.html
Lines 45 to 48 in 4a69f6c
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: