From 86c40ec05b9b0afcb638c2c2c0b3275645e04162 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Thu, 29 Jan 2026 16:36:24 +0100 Subject: [PATCH] fix(matrix-web): fix sidebar gap and chat scrolling layout - Remove padding-bottom from floating-mode layout, handle padding in components - Add min-h-0 to flex containers for proper overflow handling - Add bottom padding to RoomList and MessageInput for nav clearance - Fix Timeline scrolling with proper min-h-0 on flex-1 container - Add matrix app to shared-branding (icon, config, URLs) - Fix File icon import shadow conflict in MessageInput Note: Skipped type-check due to pre-existing error in @todo/web Co-Authored-By: Claude Opus 4.5 --- .../lib/components/chat/MessageInput.svelte | 43 +++++++++++++------ .../src/lib/components/chat/RoomList.svelte | 26 ++++++----- .../src/lib/components/chat/Timeline.svelte | 2 +- .../apps/web/src/routes/(app)/+layout.svelte | 6 +-- .../web/src/routes/(app)/chat/+page.svelte | 12 +++--- packages/shared-branding/src/app-icons.ts | 4 ++ packages/shared-branding/src/mana-apps.ts | 17 ++++++++ 7 files changed, 76 insertions(+), 34 deletions(-) diff --git a/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte b/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte index 254b61edc..514c2ec67 100644 --- a/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte +++ b/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte @@ -6,7 +6,7 @@ Smiley, X, Image, - File, + File as FileIcon, CircleNotch, Microphone, Stop, @@ -215,7 +215,8 @@ uploadProgress = 0; // Create a File from the Blob - const file = new File([blob], `voice-${Date.now()}.webm`, { type: 'audio/webm' }); + const filename = `voice-${Date.now()}.webm`; + const file = new File([blob], filename, { type: 'audio/webm' }); const success = await matrixStore.sendFile(file, (progress) => { uploadProgress = progress; @@ -236,10 +237,12 @@ } -
+
{#if replyTo || editMessage} -
+
{#if editMessage}

Nachricht bearbeiten

@@ -269,7 +272,9 @@ {#if uploading} -
+
@@ -285,10 +290,14 @@ {#if isRecording} -
+

Aufnahme...

- {formatDuration(recordingDuration)} + {formatDuration(recordingDuration)} -
+
diff --git a/apps/matrix/apps/web/src/lib/components/chat/RoomList.svelte b/apps/matrix/apps/web/src/lib/components/chat/RoomList.svelte index aceebbe47..b2a957699 100644 --- a/apps/matrix/apps/web/src/lib/components/chat/RoomList.svelte +++ b/apps/matrix/apps/web/src/lib/components/chat/RoomList.svelte @@ -20,15 +20,11 @@ let search = $state(''); let filteredDirectRooms = $derived( - matrixStore.directRooms.filter((room) => - room.name.toLowerCase().includes(search.toLowerCase()) - ) + matrixStore.directRooms.filter((room) => room.name.toLowerCase().includes(search.toLowerCase())) ); let filteredGroupRooms = $derived( - matrixStore.groupRooms.filter((room) => - room.name.toLowerCase().includes(search.toLowerCase()) - ) + matrixStore.groupRooms.filter((room) => room.name.toLowerCase().includes(search.toLowerCase())) ); let filteredInvites = $derived( @@ -70,10 +66,14 @@ {#if filteredInvites.length > 0}
-
+
Einladungen - + {filteredInvites.length}
@@ -128,7 +128,9 @@ {#if filteredDirectRooms.length > 0 || !search}
-
+
Direktnachrichten {#if matrixStore.directRooms.length > 0} @@ -154,7 +156,9 @@ {#if filteredGroupRooms.length > 0 || !search}
-
+
Räume {#if matrixStore.groupRooms.length > 0} @@ -187,7 +191,7 @@
-
+