From 0948cce83e5af128f78b67891ed24c323b159f0f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 22 Dec 2023 18:07:47 +0100 Subject: [PATCH] fix(front): uI fixes Signed-off-by: Thomas Citharel --- src/components/core/MaterialIcon.vue | 2 + src/views/Admin/InstancesView.vue | 108 +++++++++++++++------------ 2 files changed, 61 insertions(+), 49 deletions(-) diff --git a/src/components/core/MaterialIcon.vue b/src/components/core/MaterialIcon.vue index 32ba57983..ea527c729 100644 --- a/src/components/core/MaterialIcon.vue +++ b/src/components/core/MaterialIcon.vue @@ -262,6 +262,8 @@ const icons: Record Promise> = { import(`../../../node_modules/vue-material-design-icons/PencilOutline.vue`), Apps: () => import(`../../../node_modules/vue-material-design-icons/Apps.vue`), + Server: () => + import(`../../../node_modules/vue-material-design-icons/Server.vue`), }; const props = withDefaults( diff --git a/src/views/Admin/InstancesView.vue b/src/views/Admin/InstancesView.vue index 7f0a6cb5f..f37562736 100644 --- a/src/views/Admin/InstancesView.vue +++ b/src/views/Admin/InstancesView.vue @@ -72,11 +72,11 @@ name: RouteName.INSTANCE, params: { domain: instance.domain }, }" - class="flex items-center mb-2 rounded bg-mbz-yellow-alt-300 hover:bg-mbz-yellow-alt-200 dark:bg-mbz-purple-600 dark:hover:bg-mbz-purple-700 p-4 flex-wrap justify-center gap-x-2 gap-y-3" + class="min-w-0 flex items-center mb-2 rounded bg-mbz-yellow-alt-300 hover:bg-mbz-yellow-alt-200 dark:bg-mbz-purple-600 dark:hover:bg-mbz-purple-700 p-4 flex-wrap md:flex-nowrap justify-center gap-x-2 gap-y-3" v-for="instance in instances.elements" :key="instance.domain" > -
+

{{ instance.instanceName }} @@ -115,52 +115,62 @@ > {{ instance.domain }}

-

- {{ - instance.software - }} - - - {{ instance.domain }} -

-

- {{ instance.software }} -

- - - {{ t("Followed") }} - - - {{ t("Followed, pending response") }} - - - {{ t("Follows us") }} - - - {{ t("Follows us, pending approval") }} +
+
+

+ + {{ instance.domain }} +

+

+ + {{ instance.software }} +

+
+
+

+ + {{ t("Followed") }} +

+

+ + {{ t("Followed, pending response") }} +

+

+ + {{ t("Follows us") }} +

+

+ + {{ t("Follows us, pending approval") }} +

+
+