Skip to content

Commit

Permalink
Merge pull request #4 from Altanali/quantum-js-vis-branch
Browse files Browse the repository at this point in the history
Reduce width of palette on creation in a JupyterNotebook via braket()…
  • Loading branch information
Altanali authored Aug 11, 2021
2 parents e98a7af + 19eff83 commit 50c6ea4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -8170,10 +8170,12 @@ braket = function(){
circuit = new Q( args[0], args[1] )
}
container = document.createElement( 'div' )
container.appendChild( Editor.createPalette() )
let paletteEl = Editor.createPalette();
paletteEl.style.width = "50%";
container.appendChild( paletteEl );
container.appendChild( circuit.toDom() )
element.html( container )
document.querySelectorAll('.Q-circuit-palette').forEach( paletteEl => paletteEl.style.width = "50%")


// We’re going to take this SLOOOOOOOOWLY
// because there are many potential things to debug.
Expand Down

0 comments on commit 50c6ea4

Please sign in to comment.