From 800bc56796273433110d7c57e73d43350d7492d7 Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Wed, 8 Nov 2023 23:05:40 +0100 Subject: [PATCH] Review design for mentioned notes --- tailwind.config.js | 5 ++++- templates/note.html | 2 +- utils.go | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index ebb8839..1381854 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -27,10 +27,13 @@ module.exports = { /* for markdown html content */ DEFAULT: { css: { + '--tw-prose-invert-body': theme('colors.neutral[100]'), + '--tw-prose-invert-quotes': theme('colors.neutral[100]'), '--tw-prose-headings': theme('colors.strongpink'), '--tw-prose-invert-headings': theme('colors.strongpink'), '--tw-prose-links': theme('colors.gray[700]'), - '--tw-prose-invert-links': theme('colors.neutral[50]') + '--tw-prose-invert-links': theme('colors.neutral[50]'), + maxWidth: '100%', a: { 'font-weight': 300, }, diff --git a/templates/note.html b/templates/note.html index 278ea96..941a5c9 100644 --- a/templates/note.html +++ b/templates/note.html @@ -56,7 +56,7 @@ >
{{ if (not (eq "" .Subject))}}

{{.Subject}}

diff --git a/utils.go b/utils.go index 3f61e20..7455d50 100644 --- a/utils.go +++ b/utils.go @@ -317,7 +317,7 @@ func renderQuotesAsHTML(ctx context.Context, input string, usingTelegramInstantV } content := fmt.Sprintf( - `
quoting %s
%s
`, match, event.Content) + `
quoting %s
%s
`, match, event.Content) return basicFormatting(content, false, usingTelegramInstantView) }) }