From 2be11e60118210ef91445222228d87a461c78df9 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Wed, 7 Apr 2021 17:58:10 +0200 Subject: [PATCH] B #5320: Fix grid layout in sunstone dashboard (#1076) --- src/sunstone/public/app/tabs/dashboard-tab/hosts.hbs | 12 +++++++++--- .../public/app/tabs/dashboard-tab/network.hbs | 8 ++++++-- .../public/app/tabs/dashboard-tab/storage.hbs | 8 ++++++-- src/sunstone/public/app/tabs/dashboard-tab/users.hbs | 8 ++++++-- src/sunstone/public/app/tabs/dashboard-tab/vms.hbs | 12 +++++++++--- src/sunstone/public/css/custom.css | 7 ++++++- 6 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/sunstone/public/app/tabs/dashboard-tab/hosts.hbs b/src/sunstone/public/app/tabs/dashboard-tab/hosts.hbs index 1b1c742228..0ed6e0cf59 100644 --- a/src/sunstone/public/app/tabs/dashboard-tab/hosts.hbs +++ b/src/sunstone/public/app/tabs/dashboard-tab/hosts.hbs @@ -33,15 +33,21 @@

0

- {{tr "MONITORED"}} + + {{tr "MONITORED"}} +

0

- {{tr "DISABLED"}} + + {{tr "DISABLED"}} +

0

- {{tr "FAILED"}} + + {{tr "FAILED"}} +
diff --git a/src/sunstone/public/app/tabs/dashboard-tab/network.hbs b/src/sunstone/public/app/tabs/dashboard-tab/network.hbs index 8606a694e9..9b228c02c4 100644 --- a/src/sunstone/public/app/tabs/dashboard-tab/network.hbs +++ b/src/sunstone/public/app/tabs/dashboard-tab/network.hbs @@ -27,11 +27,15 @@

0

- {{tr "VNETS"}} + + {{tr "VNETS"}} +

0

- {{tr "USED IPs"}} + + {{tr "USED IPs"}} +
diff --git a/src/sunstone/public/app/tabs/dashboard-tab/storage.hbs b/src/sunstone/public/app/tabs/dashboard-tab/storage.hbs index 2b2b54af15..15e797b754 100644 --- a/src/sunstone/public/app/tabs/dashboard-tab/storage.hbs +++ b/src/sunstone/public/app/tabs/dashboard-tab/storage.hbs @@ -27,11 +27,15 @@

0

- {{tr "IMAGES"}} + + {{tr "IMAGES"}} +

0

- {{tr "USED"}} + + {{tr "USED"}} +
diff --git a/src/sunstone/public/app/tabs/dashboard-tab/users.hbs b/src/sunstone/public/app/tabs/dashboard-tab/users.hbs index b935a24038..c7bb71a051 100644 --- a/src/sunstone/public/app/tabs/dashboard-tab/users.hbs +++ b/src/sunstone/public/app/tabs/dashboard-tab/users.hbs @@ -28,11 +28,15 @@

0

- {{tr "USERS"}} + + {{tr "USERS"}} +

0

- {{tr "GROUPS"}} + + {{tr "GROUPS"}} +
diff --git a/src/sunstone/public/app/tabs/dashboard-tab/vms.hbs b/src/sunstone/public/app/tabs/dashboard-tab/vms.hbs index 942ddb306e..0af23c6277 100644 --- a/src/sunstone/public/app/tabs/dashboard-tab/vms.hbs +++ b/src/sunstone/public/app/tabs/dashboard-tab/vms.hbs @@ -30,15 +30,21 @@

0

- {{tr "TOTAL"}} + + {{tr "TOTAL"}} +

0

- {{tr "PENDING"}} + + {{tr "PENDING"}} +

0

- {{tr "FAILED"}} + + {{tr "FAILED"}} +
diff --git a/src/sunstone/public/css/custom.css b/src/sunstone/public/css/custom.css index 32b5c82371..baa17ae5a9 100644 --- a/src/sunstone/public/css/custom.css +++ b/src/sunstone/public/css/custom.css @@ -185,8 +185,13 @@ meter { .number-title{ margin-top: -15px; } -.label-card{ +.label-card { margin-top: -25px; + padding: 0; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + text-transform: uppercase; } .dashboard-fieldset{ background-color: #f8f8f8;