fix: Bubble typography (#10653)

This commit is contained in:
@@ -77,13 +77,13 @@ const textToShow = computed(() => {
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<Letter
|
<Letter
|
||||||
v-if="showQuotedMessage"
|
v-if="showQuotedMessage"
|
||||||
class-name="prose prose-email !max-w-none"
|
class-name="prose prose-bubble !max-w-none"
|
||||||
:html="fullHTML"
|
:html="fullHTML"
|
||||||
:text="textToShow"
|
:text="textToShow"
|
||||||
/>
|
/>
|
||||||
<Letter
|
<Letter
|
||||||
v-else
|
v-else
|
||||||
class-name="prose prose-email !max-w-none"
|
class-name="prose prose-bubble !max-w-none"
|
||||||
:html="unquotedHTML"
|
:html="unquotedHTML"
|
||||||
:text="textToShow"
|
:text="textToShow"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -24,8 +24,5 @@ const formattedContent = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<span
|
<span v-dompurify-html="formattedContent" class="prose prose-bubble" />
|
||||||
v-dompurify-html="formattedContent"
|
|
||||||
class="[&_.link]:text-n-slate-11 [&_.link]:underline [&>p:last-child]:mb-0 [&>ul]:list-inside [&>ol]:list-inside [&>dl]:list-inside [&>ol]:list-decimal [&>ul]:list-disc [&>blockquote]:border-l-4 [&>blockquote]:border-n-alpha-black1 [&>blockquote]:pl-2"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const tailwindConfig = {
|
|||||||
interDisplay: ['Inter Display', ...defaultSansFonts],
|
interDisplay: ['Inter Display', ...defaultSansFonts],
|
||||||
},
|
},
|
||||||
typography: {
|
typography: {
|
||||||
email: {
|
bubble: {
|
||||||
css: {
|
css: {
|
||||||
color: 'rgb(var(--slate-12))',
|
color: 'rgb(var(--slate-12))',
|
||||||
lineHeight: '1.6',
|
lineHeight: '1.6',
|
||||||
@@ -100,26 +100,37 @@ const tailwindConfig = {
|
|||||||
color: 'rgb(var(--text-blue))',
|
color: 'rgb(var(--text-blue))',
|
||||||
textDecoration: 'underline',
|
textDecoration: 'underline',
|
||||||
},
|
},
|
||||||
|
ul: {
|
||||||
|
paddingInlineStart: '0.625em',
|
||||||
|
},
|
||||||
|
ol: {
|
||||||
|
paddingInlineStart: '0.625em',
|
||||||
|
},
|
||||||
'ul li': {
|
'ul li': {
|
||||||
margin: '0 0 0.5em 1.5em',
|
margin: '0 0 0.5em 1em',
|
||||||
listStyleType: 'disc',
|
listStyleType: 'disc',
|
||||||
},
|
},
|
||||||
'ol li': {
|
'ol li': {
|
||||||
margin: '0 0 0.5em 1.5em',
|
margin: '0 0 0.5em 1em',
|
||||||
listStyleType: 'decimal',
|
listStyleType: 'decimal',
|
||||||
},
|
},
|
||||||
blockquote: {
|
blockquote: {
|
||||||
fontStyle: 'italic',
|
|
||||||
color: 'rgb(var(--slate-11))',
|
color: 'rgb(var(--slate-11))',
|
||||||
borderLeft: `4px solid rgb(var(--border-strong))`,
|
borderLeft: `4px solid rgb(var(--black-alpha-1))`,
|
||||||
paddingLeft: '1em',
|
paddingLeft: '1em',
|
||||||
},
|
},
|
||||||
code: {
|
code: {
|
||||||
backgroundColor: 'rgb(var(--alpha-3))',
|
backgroundColor: 'rgb(var(--alpha-3))',
|
||||||
color: 'rgb(var(--solid-amber))',
|
color: 'rgb(var(--slate-11))',
|
||||||
padding: '0.2em 0.4em',
|
padding: '0.2em 0.4em',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
fontSize: '0.95em',
|
fontSize: '0.95em',
|
||||||
|
'&::before': {
|
||||||
|
content: `none`,
|
||||||
|
},
|
||||||
|
'&::after': {
|
||||||
|
content: `none`,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
pre: {
|
pre: {
|
||||||
backgroundColor: 'rgb(var(--alpha-3))',
|
backgroundColor: 'rgb(var(--alpha-3))',
|
||||||
|
|||||||
Reference in New Issue
Block a user