From a5c8f551270b62baa1f60aed3849522976f31eba Mon Sep 17 00:00:00 2001 From: Jakob Wennberg Date: Fri, 21 Aug 2026 18:12:31 +0200 Subject: [PATCH] fix(settings): keep the Peppol access request inside the settings column (#1796) The request checkbox and button sat in a shrink-0 end slot next to the status text, so at the settings column's width the row grew wider than the panel and pushed every other row's label out of view. The controls now sit under the status text in a wrapping line. Claude-Session: https://claude.ai/code/session_01TqFpxeWqbpR7bcwUJLRERQ Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com> Co-authored-by: Claude Fable 5 --- components/settings/PeppolReceiveSettings.tsx | 56 ++++++++++--------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/components/settings/PeppolReceiveSettings.tsx b/components/settings/PeppolReceiveSettings.tsx index 0d29e532..f692dc90 100644 --- a/components/settings/PeppolReceiveSettings.tsx +++ b/components/settings/PeppolReceiveSettings.tsx @@ -152,7 +152,7 @@ export function PeppolReceiveSettings() { return ( -
+
{loadFailed ? ( {t('load_failed')} ) : state === null ? ( @@ -160,34 +160,38 @@ export function PeppolReceiveSettings() { ) : !transportAvailable ? ( {t('provider_required')} ) : ( - <> - {accessLine} +
+ {accessLine} {sendsLine && {sendsLine}} - +
+ )} + {/* The request controls live under the status text and wrap: a long + checkbox label next to a button in a shrink-0 end slot pushed the + whole settings panel wider than its column. */} + {state !== null && transportAvailable && (access?.status === 'none' || access?.status === 'disabled') && ( +
+ + +
)}
- {state !== null && transportAvailable && (access?.status === 'none' || access?.status === 'disabled') && ( - - - - - )} {/* Receiving is a separate grant (one contracted slot each): the switch