From 9b4905bd9a6c4dd1bab39ed299d2a755e28b24b8 Mon Sep 17 00:00:00 2001 From: Heather Date: Tue, 9 Jul 2024 16:03:18 -0400 Subject: [PATCH] Fix anchor link, add some scroll margin to h4 headings --- .../build-a-backend/graphqlapi/data-modeling/index.mdx | 4 ++-- src/styles/base.scss | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/gen1/[platform]/build-a-backend/graphqlapi/data-modeling/index.mdx b/src/pages/gen1/[platform]/build-a-backend/graphqlapi/data-modeling/index.mdx index 59c389676cb..50778e981c1 100644 --- a/src/pages/gen1/[platform]/build-a-backend/graphqlapi/data-modeling/index.mdx +++ b/src/pages/gen1/[platform]/build-a-backend/graphqlapi/data-modeling/index.mdx @@ -907,7 +907,7 @@ type Query { The example above creates a custom query that utilizes the `@function` directive to call a Lambda function for this query. -For the type definitions of queries, mutations, and subscriptions, see [Type Definitions of the `@model` Directive](#type-definition-of-the-`@model`-directive). +For the type definitions of queries, mutations, and subscriptions, see [Type Definitions of the `@model` Directive](#type-definition-of-the-model-directive). ### Customize creation and update timestamps @@ -1151,7 +1151,7 @@ The `@model` directive will generate: - Filter input objects that allow you to filter objects in list queries and relationship fields. - For list queries the default number of objects returned is 100. You can override this behavior by setting the limit argument. -**Type definition of the `@model` directive** +#### Type definition of the `@model` directive ```graphql directive @model( diff --git a/src/styles/base.scss b/src/styles/base.scss index 4bfde6571a6..0a40b20b1c8 100644 --- a/src/styles/base.scss +++ b/src/styles/base.scss @@ -116,7 +116,8 @@ kbd { .main { & > h2, - & > h3 { + & > h3, + & > h4 { scroll-margin-block: 9rem; } }