File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ class InChIVersionSelectionElement extends HTMLElement {
5656 }
5757
5858 async connectedCallback ( ) {
59- const html = `<div style="border: 1px solid #ddd; border-radius: 4px; padding: 12px; background-color: #f9f9f9; width: fit-content; ">
60- <label for="version-dropdown" style="display: block;">InChI version</label >
59+ const html = `<div class="bounding-box ">
60+ <h4>Version</h4 >
6161 <select id="version-dropdown" style="display: block;" data-version></select>
6262 <span id="version-commit" style="display: block;"></span>
6363 </div>` ;
@@ -109,7 +109,10 @@ class InChIOptionsElement extends HTMLElement {
109109 } )
110110 ) ;
111111
112- this . innerHTML = htmlFragments . join ( "\n" ) ;
112+ const boundingBox = document . createElement ( "div" ) ;
113+ boundingBox . setAttribute ( "class" , "bounding-box" ) ;
114+ boundingBox . innerHTML = "<h4>Options</h4>" + htmlFragments . join ( "" ) ;
115+ this . appendChild ( boundingBox ) ;
113116
114117 /*
115118 * Reassign the name of the "stereoRadio" radio button group.
Original file line number Diff line number Diff line change @@ -63,3 +63,11 @@ button.form-select.multiselect:focus {
6363 max-width : 500px !important ;
6464 text-align : left !important ;
6565}
66+
67+ .bounding-box {
68+ border : 1px solid # ddd ;
69+ border-radius : 4px ;
70+ padding : 12px ;
71+ background-color : # f9f9f9 ;
72+ width : 100% ;
73+ }
You can’t perform that action at this time.
0 commit comments