diff --git a/app/components/ConsolePage.vue b/app/components/ConsolePage.vue index 5cc272b..aa412c5 100644 --- a/app/components/ConsolePage.vue +++ b/app/components/ConsolePage.vue @@ -200,18 +200,18 @@ :style="{ animationDelay: i * 35 + 'ms' }" @click="enterGroup(g)" > -
+
-
- {{ - g.name || t("route.untitled") - }} - - {{ t("role.badge", { role: t("roles." + roleOf(g.id)) }) }} - +
+ {{ g.name || t("route.untitled") }} +
+
+ {{ g.id }}
-
{{ g.id }}
@@ -240,6 +242,15 @@
+
+ {{ t("groups.myRole") }} + + {{ t("roles." + roleOf(g.id)) }} + +
{{ t("groups.members") }} @@ -260,7 +271,7 @@
{{ t("overview.routes") }} { .console-group-card { cursor: pointer; } +/* Cards stretch to their grid row; the footer sits at the bottom so the + dividers of one row line up whatever each card lists above them. */ +.console-group-card, +.console-group-card > :deep(div) { + display: flex; + flex-direction: column; +} +.console-group-card > :deep(div) { + flex: 1 1 auto; +} .console-open { display: inline-flex; align-items: center; diff --git a/app/composables/useI18n.ts b/app/composables/useI18n.ts index 9dc40a8..3b6fda7 100644 --- a/app/composables/useI18n.ts +++ b/app/composables/useI18n.ts @@ -84,7 +84,6 @@ const en: Dict = { "role.owner": "Owner", "role.admin": "Admin", "role.viewer": "Viewer", - "role.badge": "You: {role}", "roles.owner": "Owner", "roles.admin": "Admin", "roles.viewer": "Viewer", @@ -136,9 +135,11 @@ const en: Dict = { "groups.admins": "ADMINS", "groups.owners": "OWNERS", "groups.members": "MEMBERS", + "groups.myRole": "MY ROLE", "groups.any": "any", "groups.open": "Open", "group.back": "Groups", + "groups.delete": "Delete group", "group.routesIn": "Routes in {name}", "routes.emptyGroup": "No routes in this group yet.", "routes.createFirst": "Create your first route", @@ -522,7 +523,6 @@ const zh: Dict = { "role.owner": "拥有者", "role.admin": "管理员", "role.viewer": "只读", - "role.badge": "我的角色:{role}", "roles.owner": "拥有者", "roles.admin": "管理员", "roles.viewer": "只读", @@ -572,9 +572,11 @@ const zh: Dict = { "groups.admins": "管理员", "groups.owners": "来源", "groups.members": "成员", + "groups.myRole": "我的角色", "groups.any": "任意", "groups.open": "进入", "group.back": "返回分组", + "groups.delete": "删除分组", "group.routesIn": "{name} 的路由", "routes.emptyGroup": "该分组还没有路由。", "routes.createFirst": "创建第一个路由",