Skip to content

Commit

Permalink
fix: font sizing for file and list of files
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Mar 26, 2024
1 parent 6b4fd04 commit c8064b9
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Fragment, ReactNode } from "react";
import { ResolvedRequestBody, ResolvedTypeDefinition, visitResolvedHttpRequestBodyShape } from "../../util/resolver";
import { ApiPageDescription } from "../ApiPageDescription";
import { JsonPropertyPath } from "../examples/JsonPropertyPath";
import { TypeComponentSeparator } from "../types/TypeComponentSeparator";
import { TypeReferenceDefinitions } from "../types/type-reference/TypeReferenceDefinitions";
import { renderTypeShorthand } from "../types/type-shorthand/TypeShorthand";
import { TypeComponentSeparator } from "../types/TypeComponentSeparator";
import { EndpointParameter, EndpointParameterContent } from "./EndpointParameter";

export declare namespace EndpointRequestSection {
Expand Down Expand Up @@ -64,7 +64,11 @@ export const EndpointRequestSection: React.FC<EndpointRequestSection.Props> = ({
<EndpointParameterContent
name={file.key}
description={undefined}
typeShorthand={file.isOptional ? "optional file" : "file"}
typeShorthand={
<span className="t-muted inline-flex items-baseline gap-2 text-xs">
{file.isOptional ? "optional file" : "file"}
</span>
}
anchorIdParts={[...anchorIdParts, file.key]}
route={route}
availability={undefined}
Expand All @@ -75,7 +79,9 @@ export const EndpointRequestSection: React.FC<EndpointRequestSection.Props> = ({
name={fileArray.key}
description={undefined}
typeShorthand={
fileArray.isOptional ? "optional list of files" : "list of files"
<span className="t-muted inline-flex items-baseline gap-2 text-xs">
{fileArray.isOptional ? "optional list of files" : "list of files"}
</span>
}
anchorIdParts={[...anchorIdParts, fileArray.key]}
route={route}
Expand Down

0 comments on commit c8064b9

Please sign in to comment.