fb9fad40e3c171cbfcda792eea401a75e5829242
lrnassar
Thu Feb 26 14:29:52 2026 -0800
Removing the max-width tag, which was arbitrarily cutting the hgSession table short, especially these days when monitors are wider. Also fixed an issue that TH and TD items were being called, TH are table headers and TD are cells, so all the header columns should be TH, this was causing a visual bug when the screen size was very small. Also removed the tags, they are not necessary since TH items are automatically bolded. Also aligned all the text to the left based on ticket feedback since it looks better. Lastly, added a line for the 'sessionTable_filter' element to override the CSS of the filter search bar so it will be on the left side, next to the show NN items. Refs #33998
diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c
index fb151c730fc..e3be1585167 100644
--- src/hg/hgSession/hgSession.c
+++ src/hg/hgSession/hgSession.c
@@ -308,42 +308,43 @@
/* DataTables configuration: only allow ordering on session name, creation date, and database.
* https://datatables.net/reference/option/columnDefs */
jsInlineF(
"if (theClient.isIePre11() === false)\n{\n"
"$(document).ready(function () {\n"
" $('#sessionTable').DataTable({\"columnDefs\": [{\"orderable\":false, \"targets\":[0,4,5,6,7,8]}],\n"
" \"order\":[2,'desc'],\n"
" \"stateSave\":true,\n"
" \"stateSaveCallback\": %s,\n"
" \"stateLoadCallback\": %s\n"
" });\n"
"} );\n"
"}\n"
, jsDataTableStateSave(hgSessionPrefix), jsDataTableStateLoad(hgSessionPrefix, cart));
+printf("\n");
printf("My Sessions
\n");
-printf("");
printf("
\n");
printf("");
-printf(" | Session name (click to load) | "
- "Created on | View count | "
- "Assembly | "
- "View/edit details | "
- "Delete this session | "
- "Share with others? | "
- "Post in public listing? | "
- "Send to mail | ",
+printf(" | "
+ "Session name (click to load) | "
+ "Created on | View count | "
+ "Assembly | "
+ "View/edit details | "
+ "Delete this session | "
+ "Share with others? | "
+ "Post in public listing? | "
+ "Send to mail | ",
cartSidUrlString(cart));
printf("
");
printf("\n");
if (gotSettings)
sqlSafef(query, sizeof(query), "SELECT sessionName, shared, firstUse, useCount, contents, settings from %s "
"WHERE userName = '%s' ORDER BY sessionName;",
namedSessionTable, encUserName);
else
sqlSafef(query, sizeof(query), "SELECT sessionName, shared, firstUse, useCount, contents from %s "
"WHERE userName = '%s' ORDER BY sessionName;",
namedSessionTable, encUserName);
sr = sqlGetResult(conn, query);
int rowIdx = 0;
@@ -444,31 +445,30 @@
link = getSessionEmailLink(encUserName, encSessionName);
printf("%s | ", link);
freez(&link);
foundAny = TRUE;
struct slName *sn = slNameNew(sessionName);
slAddHead(&existingSessionNames, sn);
}
if (!foundAny)
printf("| | (none) | "
" |
\n");
printf("\n");
printf("
\n");
-printf("
\n");
printf("
\n");
sqlFreeResult(&sr);
hDisconnectCentral(&conn);
return existingSessionNames;
}
void showOtherUserOptions()
/* Print out inputs for loading another user's saved session. */
{
printf("\n");
printf("| "
"Use settings from another user's saved session: |
\n"
"| | User: \n");
cgiMakeOnKeypressTextVar(hgsOtherUserName,
cartUsualString(cart, hgsOtherUserName, ""),
|