diff --git a/components/content/figure.tsx b/components/content/figure.tsx index 74d53afa4..c268d0e46 100644 --- a/components/content/figure.tsx +++ b/components/content/figure.tsx @@ -20,9 +20,23 @@ export function Figure(props: Readonly): ReactNode { const { alignment = "stretch", alt = "", children, height, src, width } = props; return ( -
+
{alt} -
{children}
+
+ {children} +
); } diff --git a/content/en/resources/hosted/introduction-to-dictionaries/index.mdx b/content/en/resources/hosted/introduction-to-dictionaries/index.mdx index 152791479..12028d868 100644 --- a/content/en/resources/hosted/introduction-to-dictionaries/index.mdx +++ b/content/en/resources/hosted/introduction-to-dictionaries/index.mdx @@ -140,7 +140,7 @@ The oldest dictionaries that we know of — those produced in the Middle East, A 1. that words which are assumed to be known to the user can be used to describe those that are not; and 2. that words to be explained need to be arranged somehow in order for the user to be able to locate them.nigram -
+
16th tablet of the Urra=hubullu lexical series, Louvre Museum. [CC BY 2.5](https://creativecommons.org/licenses/by/2.5)
diff --git a/lib/content/keystatic/components/figure/preview.tsx b/lib/content/keystatic/components/figure/preview.tsx index 62cd48bff..e975d404f 100644 --- a/lib/content/keystatic/components/figure/preview.tsx +++ b/lib/content/keystatic/components/figure/preview.tsx @@ -19,7 +19,17 @@ export function FigurePreview(props: Readonly): ReactNode { const url = useObjectUrl(src); return ( -
+
{url != null ? ( // eslint-disable-next-line @next/next/no-img-element @@ -30,7 +40,14 @@ export function FigurePreview(props: Readonly): ReactNode { /> ) : null} -
{children}
+
+ {children} +
); } diff --git a/lib/content/options.ts b/lib/content/options.ts index 95c702c8a..ee013b7a8 100644 --- a/lib/content/options.ts +++ b/lib/content/options.ts @@ -34,6 +34,8 @@ export type ContentType = (typeof contentTypes)[number]["value"]; export const figureAlignments = [ { label: "Center", value: "center" }, + { label: "Left", value: "left" }, + { label: "Right", value: "right" }, { label: "Stretch", value: "stretch" }, ] as const;