From 3e8744c8371be5ea1df84cb5c542223ca0629196 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 9 Jan 2024 14:24:29 +0100 Subject: [PATCH 01/11] fix: refs #6630 fix css --- src/components/common/VnLog.vue | 51 ++++++++++++++++----------------- src/components/ui/VnAvatar.vue | 3 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 0949fb5cb..1794c3850 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -415,7 +415,7 @@ setLogTree();
@@ -425,6 +425,7 @@ setLogTree(); class="cursor-pointer" :worker="userLog.user.id" :title="userLog.user.nickname" + size="lg" /> .loading { + display: flex; + justify-content: center; + } + & > .q-card { + min-width: 180px; + max-width: 400px; + + & > .header { + color: $dark; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + } +} .origin-log { &:first-child > .origin-info { margin-top: 0; } & > .origin-info { - width: 100%; - max-width: 42em; margin-top: 28px; gap: 6px; @@ -847,14 +864,15 @@ setLogTree(); } } .user-log { + display: flex; width: 100%; max-width: 40em; - & > .timeline { position: relative; - padding-right: 5px; - width: 50px; + padding-right: 1px; + width: 38px; min-width: 38px; + flex-grow: auto; & > .arrow { height: 8px; width: 8px; @@ -874,7 +892,7 @@ setLogTree(); position: absolute; background-color: $primary; width: 2px; - left: 23px; + left: 19px; z-index: -1; top: 0; bottom: -8px; @@ -984,25 +1002,6 @@ setLogTree(); } } } -.q-menu { - display: block; - - & > .loading { - display: flex; - justify-content: center; - } - & > .q-card { - min-width: 180px; - max-width: 400px; - - & > .header { - color: $dark; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - } -} en: diff --git a/src/components/ui/VnAvatar.vue b/src/components/ui/VnAvatar.vue index 85bece243..0cda98b32 100644 --- a/src/components/ui/VnAvatar.vue +++ b/src/components/ui/VnAvatar.vue @@ -5,13 +5,14 @@ const $props = defineProps({ worker: { type: Number, required: true }, description: { type: String, default: null }, clickable: { type: Boolean, default: false }, + size: { type: String, default: 'xl' }, }); const session = useSession(); const token = session.getToken(); @@ -666,7 +667,6 @@ setLogTree(); option-label="locale" :options="actions" @update:model-value="selectFilter('action')" - @clear="() => selectFilter('action')" hide-selected /> diff --git a/src/components/ui/VnAvatar.vue b/src/components/ui/VnAvatar.vue index 566497395..d26aeac19 100644 --- a/src/components/ui/VnAvatar.vue +++ b/src/components/ui/VnAvatar.vue @@ -4,6 +4,7 @@ import { useSession } from 'src/composables/useSession'; const $props = defineProps({ workerId: { type: Number, required: true }, description: { type: String, default: null }, + size: { type: String, default: 'xl' }, }); const session = useSession(); const token = session.getToken(); From 3c8022ac459f92d10cc67959e2e4ca3ebfdb47ec Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 10 Jan 2024 16:49:09 +0100 Subject: [PATCH 05/11] feat: refs #6630 VnAvatar letter feature added --- src/components/common/VnLog.vue | 4 ++-- src/components/ui/VnAvatar.vue | 21 +++++++++++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index b42dac386..4dcb86780 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -422,13 +422,13 @@ setLogTree(); >
- + diff --git a/src/components/ui/VnAvatar.vue b/src/components/ui/VnAvatar.vue index d26aeac19..5a5483084 100644 --- a/src/components/ui/VnAvatar.vue +++ b/src/components/ui/VnAvatar.vue @@ -1,20 +1,37 @@