From c752435cf816724e8bc46536b1eeec5de6034a97 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Tue, 3 Dec 2024 10:39:34 -0500 Subject: [PATCH 1/2] Wider tip of the day, allow p tags --- src/config/config.js | 2 +- src/lib/components/common/TipOfDay.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.js b/src/config/config.js index 1917e7504..b0481fd53 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -61,7 +61,7 @@ export const CSRF_HEADER_NAME = "X-CSRFToken"; export const POLL_INTERVAL = 5000; -export const ALLOWED_TAGS = ["a", "strong", "em", "b", "i"]; +export const ALLOWED_TAGS = ["a", "strong", "em", "b", "i", "code", "p"]; export const ALLOWED_ATTR = ["href"]; /** diff --git a/src/lib/components/common/TipOfDay.svelte b/src/lib/components/common/TipOfDay.svelte index 9437524d1..db85e698b 100644 --- a/src/lib/components/common/TipOfDay.svelte +++ b/src/lib/components/common/TipOfDay.svelte @@ -63,7 +63,7 @@ .message { flex: 1 1 auto; line-height: 1.5; - max-width: 48rem; + max-width: 80rem; padding: 0 1.5rem; } .close { From f5c3d398174bbd7652bf78aeac979d7b091a7844 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Tue, 3 Dec 2024 10:44:19 -0500 Subject: [PATCH 2/2] snaps --- .../addons/tests/__snapshots__/AddOnListItem.test.ts.snap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/addons/tests/__snapshots__/AddOnListItem.test.ts.snap b/src/lib/components/addons/tests/__snapshots__/AddOnListItem.test.ts.snap index 2607bfb9c..8f02edca4 100644 --- a/src/lib/components/addons/tests/__snapshots__/AddOnListItem.test.ts.snap +++ b/src/lib/components/addons/tests/__snapshots__/AddOnListItem.test.ts.snap @@ -195,7 +195,9 @@ exports[`AddOnListItem 2`] = `
- This Add-On uses Azure’s Document Intelligence API to OCR documents. The document(s) must be public to be processed. This Add-On uses 1 AI Credit per page. +

+ This Add-On uses Azure’s Document Intelligence API to OCR documents. The document(s) must be public to be processed. This Add-On uses 1 AI Credit per page. +