diff --git a/packages/text-editor/src/components/StyledTextEditor.svelte b/packages/text-editor/src/components/StyledTextEditor.svelte index 747f7a7b37..042712d911 100644 --- a/packages/text-editor/src/components/StyledTextEditor.svelte +++ b/packages/text-editor/src/components/StyledTextEditor.svelte @@ -16,7 +16,7 @@ import { Markup } from '@hcengineering/core' import { IntlString } from '@hcengineering/platform' import { EmptyMarkup } from '@hcengineering/text' - import { Button, ButtonSize, Scroller } from '@hcengineering/ui' + import { Button, type ButtonSize, Scroller } from '@hcengineering/ui' import { AnyExtension, mergeAttributes } from '@tiptap/core' import { createEventDispatcher } from 'svelte' import textEditorPlugin from '../plugin' @@ -51,8 +51,6 @@ let textEditor: TextEditor | undefined = undefined - let contentHeight: number - export function submit (): void { textEditor?.submit() } @@ -162,13 +160,7 @@ on:click|preventDefault|stopPropagation={() => (needFocus = true)} >
-
32} - class:scrollable={isScrollable} - style="--texteditor-maxheight: {varsStyle};" - > +
{#if isScrollable} .bar__left-panel button span { display: none; } +} +@media only screen and (max-width: 700px) { + .room-container + .bar > .bar__left-panel { position: initial; } +} + // RoomPopup .room-popup { .room-btns { diff --git a/plugins/love-resources/src/components/ControlBar.svelte b/plugins/love-resources/src/components/ControlBar.svelte index bdbd28414c..002fbf45b3 100644 --- a/plugins/love-resources/src/components/ControlBar.svelte +++ b/plugins/love-resources/src/components/ControlBar.svelte @@ -47,9 +47,6 @@ const allowShare: boolean = true let allowLeave: boolean = false - let barWidth: number - $: noLabel = barWidth < 900 - $: allowCam = $currentRoom?.type === RoomType.Video $: allowLeave = $myInfo?.room !== ($myOffice?._id ?? love.ids.Reception) @@ -104,7 +101,7 @@ const micKeys = client.getModel().findAllSync(view.class.Action, { _id: love.action.ToggleMic })?.[0]?.keyBinding -
+
{#if room._id !== love.ids.Reception} ) -
-
+
{ + parentWidth = element.clientWidth + }} +> +
{ + labelWidth = element.clientWidth + }} + > {formatName(name)} {#if connecting}
@@ -70,9 +84,9 @@
-
-
- +
+
+
@@ -102,10 +116,17 @@ } .ava { - height: 25%; overflow: hidden; - border-radius: 20%; + position: absolute; + height: 25%; aspect-ratio: 1; + border-radius: 20%; + } + &.active > .ava { + display: none; + } + &:not(.active) { + background-color: black; } } .parent { diff --git a/plugins/love-resources/src/components/Room.svelte b/plugins/love-resources/src/components/Room.svelte index ec17bf7299..aa56531cb4 100644 --- a/plugins/love-resources/src/components/Room.svelte +++ b/plugins/love-resources/src/components/Room.svelte @@ -17,7 +17,7 @@ import { personByIdStore } from '@hcengineering/contact-resources' import { Room as TypeRoom } from '@hcengineering/love' import { getMetadata } from '@hcengineering/platform' - import { Label, Loading, deviceOptionsStore as deviceInfo } from '@hcengineering/ui' + import { Label, Loading, deviceOptionsStore as deviceInfo, resizeObserver } from '@hcengineering/ui' import { LocalParticipant, LocalTrackPublication, @@ -317,8 +317,10 @@
{#if withVideo}
{ + roomWidth = element.clientWidth + roomHeight = element.clientHeight + }} class="videoGrid" style={$screenSharing ? '' : gridStyle} class:scroll-m-0={$screenSharing}