From c415892b62de78087b08cb27c515fac8c5f1fd96 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Wed, 2 Apr 2025 08:07:46 +0300 Subject: [PATCH] LOVE: updated ParticipantView layout (#8426) Signed-off-by: Alexander Platov --- packages/theme/styles/button.scss | 1 + .../src/components/ParticipantView.svelte | 76 +++++++++---------- .../src/components/icons/MicDisabled.svelte | 44 +++++++++++ 3 files changed, 81 insertions(+), 40 deletions(-) create mode 100644 plugins/love-resources/src/components/icons/MicDisabled.svelte diff --git a/packages/theme/styles/button.scss b/packages/theme/styles/button.scss index 883b6122ed..79798aa588 100644 --- a/packages/theme/styles/button.scss +++ b/packages/theme/styles/button.scss @@ -181,6 +181,7 @@ min-height: 0; } .hulyStatusBarButton { + overflow: hidden; gap: var(--spacing-1); padding: var(--spacing-0_25) var(--spacing-0_25) var(--spacing-0_25) var(--spacing-1); height: 1.625rem; diff --git a/plugins/love-resources/src/components/ParticipantView.svelte b/plugins/love-resources/src/components/ParticipantView.svelte index 94f2bed00b..1614b6c071 100644 --- a/plugins/love-resources/src/components/ParticipantView.svelte +++ b/plugins/love-resources/src/components/ParticipantView.svelte @@ -16,8 +16,9 @@ import { Person, formatName } from '@hcengineering/contact' import { Avatar, personByIdStore } from '@hcengineering/contact-resources' import { Ref } from '@hcengineering/core' - import { Icon, Loading } from '@hcengineering/ui' + import { Loading } from '@hcengineering/ui' import love from '../plugin' + import MicDisabled from './icons/MicDisabled.svelte' export let _id: string export let name: string @@ -57,10 +58,10 @@
{formatName(name)} -
- {#if connecting}{/if} - {#if muted}{/if} -
+
+
+ {#if connecting}{/if} + {#if muted}{/if}
@@ -96,9 +97,9 @@ .ava { overflow: hidden; position: absolute; - height: 25%; + width: 6rem; aspect-ratio: 1; - border-radius: 20%; + border-radius: 50%; } &.active > .ava { display: none; @@ -115,44 +116,39 @@ min-height: 0; max-height: 100%; - .label { + .label, + .icon { position: absolute; display: flex; - justify-content: space-between; + justify-content: center; align-items: center; - gap: 0.5rem; - bottom: 0.375rem; - left: 0.375rem; - right: 0.375rem; - max-width: calc(100% - 0.75rem); + padding: 0.25rem 0.5rem; + height: 1.5rem; + color: rgba(0, 0, 0, 0.75); + background-color: rgba(255, 255, 255, 0.5); + backdrop-filter: blur(3px); z-index: 1; + } + .label { + overflow: hidden; + top: 0; + left: 0; + max-width: 12rem; + font-weight: 500; + font-size: 0.75rem; + line-height: 1rem; + border-radius: 0.75rem 0 0.5rem 0; + } + .icon { + display: none; + bottom: 0; + right: 0; + flex-shrink: 0; + gap: 0.25rem; + border-radius: 0.5rem 0 0.75rem 0; - span, - .icon { - height: 1.5rem; - background-color: rgba(0, 0, 0, 0.7); - border-radius: 0.375rem; - } - span { - padding: 0.25rem 0.5rem; - overflow: hidden; - text-overflow: ellipsis; - font-size: 0.875rem; - line-height: 1rem; - color: #ffffff; - } - .icon { - display: none; - justify-content: center; - align-items: center; - flex-shrink: 0; - gap: 0.25rem; - padding: 0.25rem; - min-width: 1.5rem; - - &.shown { - display: flex; - } + &.shown { + display: flex; } } } diff --git a/plugins/love-resources/src/components/icons/MicDisabled.svelte b/plugins/love-resources/src/components/icons/MicDisabled.svelte new file mode 100644 index 0000000000..e7934be3af --- /dev/null +++ b/plugins/love-resources/src/components/icons/MicDisabled.svelte @@ -0,0 +1,44 @@ + + + + + + + + + +