diff --git a/package.json b/package.json index 726ab03..743013c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sanitypress", - "version": "4.9.3", + "version": "4.9.4", "description": "A Next.js + Sanity.io Starter Template", "author": "nuotsu (https://nuotsu.dev)", "license": "ISC", diff --git a/sanity/schemas/modules/richtext-module.ts b/sanity/schemas/modules/richtext-module.ts index abf9b84..f259224 100644 --- a/sanity/schemas/modules/richtext-module.ts +++ b/sanity/schemas/modules/richtext-module.ts @@ -13,6 +13,12 @@ export default defineType({ { name: 'options', title: 'Options' }, ], fields: [ + defineField({ + name: 'uid', + title: 'Unique Identifier', + type: 'uid', + group: 'options', + }), defineField({ name: 'content', type: 'array', @@ -46,6 +52,13 @@ export default defineType({ initialValue: 'right', group: 'options', }), + defineField({ + name: 'stretch', + type: 'boolean', + initialValue: false, + hidden: ({ parent }) => parent.tableOfContents, + group: 'options', + }), ], preview: { select: { diff --git a/src/styles/app.css b/src/styles/app.css index 5076bdc..280c968 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -123,7 +123,6 @@ .is-external::after { content: ' ↗'; font-size: 0.7em; - vertical-align: top; } /* layout */ diff --git a/src/ui/Announcement.tsx b/src/ui/Announcement.tsx index 6e5f13c..b513b7f 100644 --- a/src/ui/Announcement.tsx +++ b/src/ui/Announcement.tsx @@ -27,12 +27,12 @@ export default async function Announcement() { if (!active) return null return ( -