From 7b9c16487b0840b6b9ec64a60f3282195853dbb1 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 27 Nov 2023 23:35:18 +0100 Subject: [PATCH] upd: add fields to user popup Closes transfem-org/Sharkey#173 --- .../frontend/src/components/MkUserPopup.vue | 55 ++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/MkUserPopup.vue b/packages/frontend/src/components/MkUserPopup.vue index 1ddae40b9d..d958b325e5 100644 --- a/packages/frontend/src/components/MkUserPopup.vue +++ b/packages/frontend/src/components/MkUserPopup.vue @@ -28,9 +28,20 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
{{ i18n.ts.noAccountDescription }}
+
+
+
+ +
+
+ + +
+
+
{{ i18n.ts.notes }}
@@ -221,6 +232,48 @@ onMounted(() => { border-bottom: solid 1px var(--divider); } +.fields { + font-size: 0.8em; + padding: 16px; + border-top: solid 1px var(--divider); + border-bottom: solid 1px var(--divider); +} + +.field { + display: flex; + padding: 0; + margin: 0; + + &:not(:last-child) { + margin-bottom: 8px; + } + + :deep(span) { + white-space: nowrap !important; + } +} + +.fieldvalue { + width: 70%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + word-wrap: nowrap; + margin: 0; +} + +.fieldname { + width: 100px; + max-height: 45px; + overflow: hidden; + white-space: nowrap; + display: inline; + text-overflow: ellipsis; + font-weight: bold; + text-align: center; + padding-inline-end: 10px; +} + .mfm { display: -webkit-box; -webkit-line-clamp: 5;