diff --git a/src/helpers/esp32/TouchPrefsStore.h b/src/helpers/esp32/TouchPrefsStore.h index 2f9fab6..38fafc9 100644 --- a/src/helpers/esp32/TouchPrefsStore.h +++ b/src/helpers/esp32/TouchPrefsStore.h @@ -89,11 +89,11 @@ bool touchPrefsSetLangFile(const char* code); /** User-configurable quick-reply macros: up to 6 short strings the user can * drop into the composer with a single tap (e.g. "ok", "on the way", - * "stuck — wait"). idx is 0..5; max length 31 chars + null. Returns the + * "stuck — wait"). idx is 0..5; max length 100 chars + null. Returns the * text length actually written into `out` (0 if the slot is empty or idx * is out of range). `out` is always null-terminated when out_cap > 0. */ constexpr int TOUCH_QUICK_REPLY_COUNT = 6; -constexpr int TOUCH_QUICK_REPLY_MAXLEN = 32; +constexpr int TOUCH_QUICK_REPLY_MAXLEN = 101; int touchPrefsGetQuickReply(int idx, char* out, int out_cap); bool touchPrefsSetQuickReply(int idx, const char* text); diff --git a/src/ui-touch/UITask.cpp b/src/ui-touch/UITask.cpp index 9830ae6..63b75b4 100644 --- a/src/ui-touch/UITask.cpp +++ b/src/ui-touch/UITask.cpp @@ -12493,8 +12493,8 @@ static void buildQuickReplySettings() { int y = 0; // Compact form: one row per slot, with the slot index as a tiny prefix // label so the user knows which macro they're editing. Single-line - // textareas to keep the modal short; macro text caps at 31 chars on the - // store side anyway, which fits one line. + // textareas keep the six-slot modal compact; longer replies scroll + // horizontally while editing. #if defined(ESP32) for (int i = 0; i < TOUCH_QUICK_REPLY_COUNT; ++i) { char buf[TOUCH_QUICK_REPLY_MAXLEN];