diff --git a/commafeed-client/src/components/content/BasicHtmlStyles.tsx b/commafeed-client/src/components/content/BasicHtmlStyles.tsx index 07b726069..f62a87741 100644 --- a/commafeed-client/src/components/content/BasicHtmlStyles.tsx +++ b/commafeed-client/src/components/content/BasicHtmlStyles.tsx @@ -1,11 +1,24 @@ import { TypographyStylesProvider } from "@mantine/core" import type { ReactNode } from "react" +import { tss } from "tss" /** * This component is used to provide basic styles to html typography elements. * * see https://mantine.dev/core/typography-styles-provider/ */ + +const useStyles = tss.create(() => ({ + // override mantine default typography styles + content: { + paddingLeft: 0, + "& img": { + marginBottom: 0, + }, + }, +})) + export const BasicHtmlStyles = (props: { children: ReactNode }) => { - return {props.children} + const { classes } = useStyles() + return {props.children} }