From 4876761154667f639ff41c6b62d8a09c7c051b28 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 9 Dec 2024 14:33:37 +0530 Subject: [PATCH] ui: Allow font-awesome icon usage and optimise icon size inconsistency (#9744) Signed-off-by: Rohit Yadav Co-authored-by: dahn --- ui/src/components/menu/SMenu.vue | 6 ++++++ ui/src/components/view/InfoCard.vue | 26 ++++++++++++++++++++------ ui/src/components/view/ListView.vue | 6 +++--- ui/src/core/ext.js | 8 ++------ 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/ui/src/components/menu/SMenu.vue b/ui/src/components/menu/SMenu.vue index 67603b7b9246..f48b46073216 100644 --- a/ui/src/components/menu/SMenu.vue +++ b/ui/src/components/menu/SMenu.vue @@ -58,6 +58,12 @@ v-if="item.meta.icon && typeof (item.meta.icon) === 'string'" :icon="item.meta.icon" @click="() => { handleClickParentMenu(item) }" /> + {{ $t(item.meta.title) }} diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 6b42d68ddc35..94570c715b8d 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -34,12 +34,12 @@ - + @@ -179,7 +179,10 @@
{{ $t('label.cpu') }}
- + {{ resource.cpunumber }} CPU x {{ (resource.cpuspeed / 1000.0).toFixed(2) }} GHz