Skip to content

Commit 4b2f53b

Browse files
committed
Visually distinguish version selection and options
1 parent 1c89e6f commit 4b2f53b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

pages/components/components.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

pages/css/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)