ccfa1e241fa0901145350afe59049b26f345df14 chmalee Tue Jul 30 15:34:54 2024 -0700 Some style changes to hgSearch requested by Mark and Lou. One is fix resizing of columns when the window has been made small. Two is make font size of track titles larger, refs Mark email and #33503 diff --git src/hg/js/hgSearch.js src/hg/js/hgSearch.js index cd38f99..f0af8c3 100644 --- src/hg/js/hgSearch.js +++ src/hg/js/hgSearch.js @@ -658,31 +658,31 @@ newListObj.setAttributeNode(idAttr); let noLiStyle = document.createAttribute("class"); noLiStyle.value = "liNoStyle"; newListObj.setAttributeNode(noLiStyle); let inp = document.createElement("input"); inp.type = "hidden"; inp.id = idAttr.value + categoryCount; inp.value = "0"; newListObj.appendChild(inp); let ctrlImg = document.createElement("img"); ctrlImg.height = "18"; ctrlImg.width = "18"; ctrlImg.id = idAttr.value + categoryCount + "_button"; ctrlImg.src = "../images/remove_sm.gif"; newListObj.appendChild(ctrlImg); - let descText = document.createTextNode(searchDesc + ":"); + let descText = document.createTextNode(" " + searchDesc + ":"); newListObj.appendChild(descText); // Now loop through each actual hit on this table and unpack onto list let subList = document.createElement("ul"); // only print the first 10 at first printMatches(subList, matches.slice(0,10), title, searchDesc, false); if (matches.length > 10) { let idStr = idAttr.value + "_" + categoryCount; let showMoreLi = document.createElement("li"); showMoreLi.id = idStr; showMoreLi.classList.add("liNoStyle"); let showMoreInp = document.createElement("input"); showMoreInp.type = "hidden"; showMoreInp.value = '0'; showMoreInp.id = showMoreLi.id + "showMore"; showMoreLi.appendChild(showMoreInp);