From ea955c779e5e268e9ed294c38e31a5af416122ba Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 8 Apr 2025 20:40:18 +0200 Subject: [PATCH] Fix image size in help-text for logo-images --- src/pretix/base/settings.py | 6 ++++-- src/pretix/control/forms/organizer.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pretix/base/settings.py b/src/pretix/base/settings.py index 722be491e5..6d5a24b9f6 100644 --- a/src/pretix/base/settings.py +++ b/src/pretix/base/settings.py @@ -2883,7 +2883,8 @@ Your {organizer} team""")) # noqa: W291 ext_whitelist=settings.FILE_UPLOAD_EXTENSIONS_IMAGE, max_size=settings.FILE_UPLOAD_MAX_SIZE_IMAGE, help_text=_('If you provide a logo image, we will by default not show your event name and date ' - 'in the page header. By default, we show your logo with a size of up to 1140x120 pixels. You ' + 'in the page header. If you use a white background, we show your logo with a size of up ' + 'to 1140x120 pixels. Otherwise the maximum size is 1120x120 pixels. You ' 'can increase the size with the setting below. We recommend not using small details on the picture ' 'as it will be resized on smaller screens.') ), @@ -2926,7 +2927,8 @@ Your {organizer} team""")) # noqa: W291 ext_whitelist=settings.FILE_UPLOAD_EXTENSIONS_IMAGE, max_size=settings.FILE_UPLOAD_MAX_SIZE_IMAGE, help_text=_('If you provide a logo image, we will by default not show your organization name ' - 'in the page header. By default, we show your logo with a size of up to 1140x120 pixels. You ' + 'in the page header. If you use a white background, we show your logo with a size of up ' + 'to 1140x120 pixels. Otherwise the maximum size is 1120x120 pixels. You ' 'can increase the size with the setting below. We recommend not using small details on the picture ' 'as it will be resized on smaller screens.') ), diff --git a/src/pretix/control/forms/organizer.py b/src/pretix/control/forms/organizer.py index 2cef1c657d..8978eb20ef 100644 --- a/src/pretix/control/forms/organizer.py +++ b/src/pretix/control/forms/organizer.py @@ -522,7 +522,8 @@ class OrganizerSettingsForm(SettingsForm): max_size=settings.FILE_UPLOAD_MAX_SIZE_IMAGE, required=False, help_text=_('If you provide a logo image, we will by default not show your organization name ' - 'in the page header. By default, we show your logo with a size of up to 1140x120 pixels. You ' + 'in the page header. If you use a white background, we show your logo with a size of up ' + 'to 1140x120 pixels. Otherwise the maximum size is 1120x120 pixels. You ' 'can increase the size with the setting below. We recommend not using small details on the picture ' 'as it will be resized on smaller screens.') )