From 496236718250b336aa391759e0abeef13979cb37 Mon Sep 17 00:00:00 2001 From: Kristina Date: Tue, 23 Jul 2024 14:15:58 +0400 Subject: [PATCH] UBERF-7638: Add scroll to latest message button (#6119) Signed-off-by: Kristina Fefelova --- packages/ui/src/components/ButtonBase.svelte | 16 +++- .../ui/src/components/ModernButton.svelte | 2 + plugins/chunter-assets/lang/en.json | 3 +- plugins/chunter-assets/lang/es.json | 3 +- plugins/chunter-assets/lang/fr.json | 3 +- plugins/chunter-assets/lang/pt.json | 3 +- plugins/chunter-assets/lang/ru.json | 3 +- plugins/chunter-assets/lang/zh.json | 3 +- .../src/channelDataProvider.ts | 50 ++++++----- .../src/components/ChannelScrollView.svelte | 84 +++++++++++++++++-- plugins/chunter-resources/src/plugin.ts | 3 +- 11 files changed, 135 insertions(+), 38 deletions(-) diff --git a/packages/ui/src/components/ButtonBase.svelte b/packages/ui/src/components/ButtonBase.svelte index ac7017b128..dc58b5a443 100644 --- a/packages/ui/src/components/ButtonBase.svelte +++ b/packages/ui/src/components/ButtonBase.svelte @@ -40,6 +40,7 @@ export let inheritFont: boolean = false export let tooltip: LabelAndProps | undefined = undefined export let element: HTMLButtonElement | undefined = undefined + export let shape: 'rectangle' | 'round' = 'rectangle' export let id: string | undefined = undefined let actualIconSize: IconSize = 'small' @@ -89,7 +90,7 @@