Skip to content

Commit c1be80e

Browse files
committed
Add inline styles in _create_placeholders_if_missing()
1 parent 6573504 commit c1be80e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/switchers.js

+3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ const _create_placeholders_if_missing = () => {
4141
if (item.innerText.toLowerCase().includes("documentation")) {
4242
const container = document.createElement("li");
4343
container.className = "switchers";
44+
container.style.display = "inline-flex";
4445
for (const placeholder_name of ["language", "version"]) {
4546
const placeholder = document.createElement("div");
4647
placeholder.className = `${placeholder_name}_switcher_placeholder`;
48+
placeholder.style.marginRight = "5px";
49+
placeholder.style.paddingLeft = "5px";
4750
container.appendChild(placeholder);
4851
}
4952
item.parentElement.insertBefore(container, item);

0 commit comments

Comments
 (0)