5bf315f014b13b0bfb51d268264297b06f370b37 max Thu Mar 14 08:16:14 2024 -0700 changing more info link such that it doesnt change the alignment anymore, refs #33065 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index b681980..4e353b5 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9454,32 +9454,37 @@ if (strstr(group->label, "Collections")) { safef(idText, sizeof idText, "%s_edit", group->name); hPrintf("\n", idText); jsOnEventByIdF("click", idText, "document.editHubForm.submit();return true;"); } } hPrintf("\n%s", group->label); hPrintf("\n"); if (isHubTrack(group->name)) { struct trackHub *hub = grabHashedHub(group->name); - if ((hub != NULL) && (hub->descriptionUrl != NULL)) - hPrintf("More Info  ", hub->descriptionUrl); + + // visibility: hidden means that the element takes up space so the center alignment is not disturbed. + char *cssStr = ""; + if ((hub == NULL) || (hub->descriptionUrl == NULL)) + cssStr = "visibility: hidden"; + + hPrintf("More Info  ", hub->descriptionUrl, cssStr); safef(idText, sizeof idText, "%s_disconn", group->name); hPrintf("\n", idText); jsOnEventByIdF("click", idText, "document.disconnectHubForm.elements['hubId'].value='%s';" "document.disconnectHubForm.submit();return true;", group->name + strlen(hubTrackPrefix)); } hPrintf("\n"); hPrintf("\n"); controlGridEndRow(cg);