From fa15a45eb2c83041e40edbea0c0f9fc2deacee64 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Wed, 11 Nov 2026 13:08:37 +0100 Subject: [PATCH] Keep scale labels in place when switching to stars Co-Authored-By: Claude Opus 5.5 --- templates/Slides/form.php | 5 ++++- webroot/css/plenario.css | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/Slides/form.php b/templates/Slides/form.php index 28cd2c9..a51dd5a 100644 --- a/templates/Slides/form.php +++ b/templates/Slides/form.php @@ -156,7 +156,7 @@ $optionsError = $slide->getError('options_text'); ['value' => \App\Model\Entity\Slide::SCALE_STARS, 'text' => __('Sterne (wie bei einer Produktbewertung)')], ], ['value' => $settings['style']]) ?> -
+
Form->control('settings.scale_min', [ 'type' => 'select', 'options' => [0 => '0', 1 => '1'], 'label' => __('Von'), 'value' => $settings['scale_min'], @@ -168,6 +168,9 @@ $optionsError = $slide->getError('options_text'); 'label' => $stars ? __('Anzahl Sterne') : __('Bis'), 'value' => $settings['scale_max'], 'data-label-numbers' => __('Bis'), 'data-label-stars' => __('Anzahl Sterne'), ]) ?> +
+ +
Form->control('settings.min_label', [ 'label' => __('Beschriftung links (optional)'), 'maxlength' => 60, 'placeholder' => __('z. B. gar nicht'), 'value' => $settings['min_label'], diff --git a/webroot/css/plenario.css b/webroot/css/plenario.css index 5a80bc2..d6118c2 100644 --- a/webroot/css/plenario.css +++ b/webroot/css/plenario.css @@ -127,6 +127,7 @@ h3 { font-size: 1.05rem; margin-top: 1.6em; } .grid { display: grid; gap: 24px; } .grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } +.grid--fill { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } /* keeps empty columns: a lone field stays half width */ .grid--tight { gap: 0 16px; } .grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } @media (max-width: 900px) {