@ -0,0 +1,16 @@
|
||||
-- Set background to white for all themes that have no background color set
|
||||
UPDATE
|
||||
"Typebot" t
|
||||
SET
|
||||
"theme" = jsonb_set(
|
||||
jsonb_set(
|
||||
t."theme",
|
||||
'{general,background,type}',
|
||||
'"Color"'
|
||||
),
|
||||
'{general,background,content}',
|
||||
'"#FFFFFF"'
|
||||
),
|
||||
"updatedAt" = now()
|
||||
WHERE
|
||||
t."theme" -> 'general' -> 'background' ->> 'type' = 'None'
|
@ -58,7 +58,10 @@ export const defaultTheme: Theme = {
|
||||
placeholderColor: '#9095A0',
|
||||
},
|
||||
},
|
||||
general: { font: 'Open Sans', background: { type: BackgroundType.NONE } },
|
||||
general: {
|
||||
font: 'Open Sans',
|
||||
background: { type: BackgroundType.COLOR, content: '#ffffff' },
|
||||
},
|
||||
}
|
||||
|
||||
export type Theme = z.infer<typeof themeSchema>
|
||||
|
Reference in New Issue
Block a user