From 9262e4a2bef92ff29a1b1221c9d8ea91c0cd5474 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 18 May 2026 18:43:21 +0200 Subject: [PATCH] Refactor maxHeight handling in messaging and editor components for consistency --- android/app/build.gradle | 4 ++-- web/components/messaging/send-message-button.tsx | 2 +- web/components/widgets/editor.tsx | 13 +++++++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index a64b7bbb..5f22de34 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.compassconnections.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 108 - versionName "1.25.0" + versionCode 109 + versionName "1.26.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/web/components/messaging/send-message-button.tsx b/web/components/messaging/send-message-button.tsx index 1748043a..1d333c29 100644 --- a/web/components/messaging/send-message-button.tsx +++ b/web/components/messaging/send-message-button.tsx @@ -273,7 +273,7 @@ export const SendMessageButton = (props: { isSubmitting={!editor || submitting} isDisabled={charCount < MIN_CHARS} submitOnEnter={false} - maxHeight={'25vh'} // otherwise send button gets hidden (need better fix) + maxHeight={'max-h-[25vh]'} // otherwise send button gets hidden (need better fix) />

diff --git a/web/components/widgets/editor.tsx b/web/components/widgets/editor.tsx index fead3031..01a43239 100644 --- a/web/components/widgets/editor.tsx +++ b/web/components/widgets/editor.tsx @@ -223,7 +223,16 @@ export function TextEditor(props: { onChange?: () => void maxHeight?: string }) { - const {editor, simple, hideEmbed, children, className, onBlur, onChange, maxHeight} = props + const { + editor, + simple, + hideEmbed, + children, + className, + onBlur, + onChange, + maxHeight = 'max-h-[69vh]', + } = props return ( // matches input styling @@ -234,7 +243,7 @@ export function TextEditor(props: { )} > -

+