Skip to content

Commit

Permalink
fix: make the witnesses wrapper with flex-wrap css prop
Browse files Browse the repository at this point in the history
  • Loading branch information
orlinmalkja committed Nov 5, 2024
1 parent 56853bd commit 26f9ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export function addWitness(target, witness, color) {

function createWitnessesWrapper() {
const el = document.createElement("span");
el.classList.add('witnesses')
el.classList.add('witnesses', 't-flex', 't-flex-wrap')

return el
}
Expand All @@ -281,7 +281,7 @@ function createWitnessEl(witness, witnessColor) {
// create an html element of one witness
const el = document.createElement("span");
el.innerHTML = witness
el.classList.add('t-rounded-3xl', 't-box-border', 't-h-8', 't-py-0.5', 't-px-1.5', 't-text-xs', 't-font-semibold', 't-font-sans', 't-ml-[3px]')
el.classList.add('t-rounded-3xl', 't-box-border', 't-py-0.5', 't-px-1.5', 't-text-xs', 't-font-semibold', 't-font-sans', 't-ml-[3px]')
el.style.background = colors[witnessColor]['100']
el.style.color = colors[witnessColor]['600']

Expand Down

0 comments on commit 26f9ec2

Please sign in to comment.