From 81a6a48d7079f9f18b43601366b5eb140f02c662 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 26 Apr 2026 15:13:19 +0300 Subject: [PATCH] validate color --- app/views/submissions/_value.html.erb | 16 ++++++++-------- app/views/submissions/show.html.erb | 2 +- lib/templates.rb | 2 ++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/submissions/_value.html.erb b/app/views/submissions/_value.html.erb index f283c69c..c1638449 100644 --- a/app/views/submissions/_value.html.erb +++ b/app/views/submissions/_value.html.erb @@ -5,9 +5,9 @@ <% font = field.dig('preferences', 'font') %> <% font_type = field.dig('preferences', 'font_type') %> <% font_size_px = (field.dig('preferences', 'font_size').presence || Submissions::GenerateResultAttachments::FONT_SIZE).to_i * local_assigns.fetch(:font_scale) { 1000.0 / PdfUtils::US_LETTER_W } %> -