From fbde0052a89a84063b5c3530d2afc87f828b212d Mon Sep 17 00:00:00 2001 From: nrobi144 Date: Tue, 17 Mar 2026 16:56:42 +0200 Subject: [PATCH] fix(media): video respects max height, stays within NoteCard bounds Remove fillMaxWidth before aspectRatio so the caller's heightIn(max) constraint is respected. Video now sizes to fit within the NoteCard without overlapping the author header or overflowing the card. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../amethyst/desktop/ui/media/DesktopVideoPlayer.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/media/DesktopVideoPlayer.kt b/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/media/DesktopVideoPlayer.kt index 488ce1b86..d904c53bd 100644 --- a/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/media/DesktopVideoPlayer.kt +++ b/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/media/DesktopVideoPlayer.kt @@ -251,7 +251,6 @@ fun DesktopVideoPlayer( Box( modifier = modifier - .fillMaxWidth() .aspectRatio(aspectRatio) .background( MaterialTheme.colorScheme.surfaceContainerHigh,