From f441b582d6a698fe02657e321bccb6299ae13969 Mon Sep 17 00:00:00 2001 From: Antonis Kouzoupis Date: Thu, 14 Jun 2018 17:04:51 +0200 Subject: [PATCH] [HOPSWORKS-589] Fix Admin UI height of DataTable [HOPSWORKS-589] Make table columns resizable --- hopsworks-admin/src/main/webapp/resources/css/main.css | 4 ++-- .../webapp/security/protected/admin/hostsManagement.xhtml | 1 + .../webapp/security/protected/admin/jupyterNotebooks.xhtml | 3 ++- .../src/main/webapp/security/protected/admin/newUsers.xhtml | 3 ++- .../webapp/security/protected/admin/projectsManagement.xhtml | 1 + .../webapp/security/protected/admin/refreshVariables.xhtml | 1 + .../src/main/webapp/security/protected/admin/spamUsers.xhtml | 3 ++- .../main/webapp/security/protected/admin/userManagement.xhtml | 3 ++- 8 files changed, 13 insertions(+), 6 deletions(-) diff --git a/hopsworks-admin/src/main/webapp/resources/css/main.css b/hopsworks-admin/src/main/webapp/resources/css/main.css index 7020ef7992..3ea0f4e82d 100644 --- a/hopsworks-admin/src/main/webapp/resources/css/main.css +++ b/hopsworks-admin/src/main/webapp/resources/css/main.css @@ -36,7 +36,7 @@ body { } .ui-widget-content { - height: auto !important; + height: fit-content !important; } .admin-main-layout::-webkit-scrollbar { @@ -205,4 +205,4 @@ ui-panelgrid td { .condaOutOfSync { background-color: red; -} \ No newline at end of file +} diff --git a/hopsworks-admin/src/main/webapp/security/protected/admin/hostsManagement.xhtml b/hopsworks-admin/src/main/webapp/security/protected/admin/hostsManagement.xhtml index 1576a14699..45148e29ce 100644 --- a/hopsworks-admin/src/main/webapp/security/protected/admin/hostsManagement.xhtml +++ b/hopsworks-admin/src/main/webapp/security/protected/admin/hostsManagement.xhtml @@ -96,6 +96,7 @@ value="#{nodesBean.allNodes}" editable="true" style="table-layout: auto" + resizableColumns="true" liveResize="true" rows="25" paginator="true" paginatorTemplate="{CurrentPageReport} diff --git a/hopsworks-admin/src/main/webapp/security/protected/admin/jupyterNotebooks.xhtml b/hopsworks-admin/src/main/webapp/security/protected/admin/jupyterNotebooks.xhtml index 8b42f8d799..2aacf376a6 100644 --- a/hopsworks-admin/src/main/webapp/security/protected/admin/jupyterNotebooks.xhtml +++ b/hopsworks-admin/src/main/webapp/security/protected/admin/jupyterNotebooks.xhtml @@ -63,6 +63,7 @@ emptyMessage="No notebook servers found with given criteria" rowKey="#{notebookServer.port}" style="table-layout: fixed" + resizableColumns="true" liveResize="true" sortMode="multiple" editable="true" scrollable="false" @@ -138,4 +139,4 @@ - \ No newline at end of file + diff --git a/hopsworks-admin/src/main/webapp/security/protected/admin/newUsers.xhtml b/hopsworks-admin/src/main/webapp/security/protected/admin/newUsers.xhtml index d20cf4d8c2..8611b86f82 100644 --- a/hopsworks-admin/src/main/webapp/security/protected/admin/newUsers.xhtml +++ b/hopsworks-admin/src/main/webapp/security/protected/admin/newUsers.xhtml @@ -54,7 +54,8 @@