From 5e10da812dabf1d2125964f6211edd59bcc3454a Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Tue, 19 Nov 2024 07:08:56 +0300 Subject: [PATCH] UI fixes (#7192) --- packages/theme/styles/_text-editor.scss | 3 ++ packages/ui/src/components/Scroller.svelte | 4 ++ .../components/MeetingMinutesSection.svelte | 20 ++++---- .../src/components/VideoPopup.svelte | 45 ++++++++++++---- .../src/components/DOCXViewer.svelte | 51 +++++++++++++------ 5 files changed, 89 insertions(+), 34 deletions(-) diff --git a/packages/theme/styles/_text-editor.scss b/packages/theme/styles/_text-editor.scss index ae5b6235ad..c546f3cebf 100644 --- a/packages/theme/styles/_text-editor.scss +++ b/packages/theme/styles/_text-editor.scss @@ -450,3 +450,6 @@ .select-text p > br.ProseMirror-trailingBreak::selection { background: transparent; } +.select-text .text-editor-image-container { + user-select: all; +} diff --git a/packages/ui/src/components/Scroller.svelte b/packages/ui/src/components/Scroller.svelte index 56c8dc1c32..039f07bb67 100644 --- a/packages/ui/src/components/Scroller.svelte +++ b/packages/ui/src/components/Scroller.svelte @@ -48,6 +48,8 @@ export let disablePointerEventsOnScroll = false export let onScroll: ((params: ScrollParams) => void) | undefined = undefined export let onResize: (() => void) | undefined = undefined + export let containerName: string | undefined = undefined + export let containerType: 'size' | 'inline-size' | undefined = containerName !== undefined ? 'inline-size' : undefined export function scroll (top: number, left?: number, behavior: 'auto' | 'smooth' = 'auto') { if (divScroll) { @@ -598,6 +600,8 @@ : 'row'} style:height={contentDirection === 'vertical-reverse' ? 'max-content' : noStretch ? 'auto' : '100%'} style:align-items={align} + style:container-name={containerName} + style:container-type={containerType} class:disableEvents={isScrolling && disablePointerEventsOnScroll} use:resizeObserver={() => { checkAutoScroll() diff --git a/plugins/love-resources/src/components/MeetingMinutesSection.svelte b/plugins/love-resources/src/components/MeetingMinutesSection.svelte index 12f735259b..70ee8628dc 100644 --- a/plugins/love-resources/src/components/MeetingMinutesSection.svelte +++ b/plugins/love-resources/src/components/MeetingMinutesSection.svelte @@ -14,7 +14,7 @@ --> {#if src}