mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
hex colors
This commit is contained in:
1 parent
3ef0d28ffe
commit
7676db2196
1 file changed
+1
-1
@@ -209,7 +209,7 @@ module Submissions
|
||||
font_size = preferences_font_size
|
||||
font_size ||= (([page.box.width, page.box.height].min / A4_SIZE[0].to_f) * FONT_SIZE).to_i
|
||||
|
||||
fill_color = field.dig('preferences', 'color').presence
|
||||
fill_color = field.dig('preferences', 'color').to_s.delete_prefix('#').presence
|
||||
|
||||
font_name = field.dig('preferences', 'font')
|
||||
font_variant = (field.dig('preferences', 'font_type').presence || 'none').to_sym
|
||||
|
||||
Reference in new issue
Block a user