Skip to content

Commit

Permalink
More RFD fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed Nov 14, 2023
1 parent 9bd47ca commit 69762f4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
8 changes: 8 additions & 0 deletions components/dist/asciidoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
@apply text-accent;
}

.asciidoc-body .admonition-content .paragraph {
@apply mb-1 last:mb-0;
}

.asciidoc-body .admonition-content > div {
@apply titlecase;
}

.asciidoc-body img {
@apply mx-auto h-auto w-auto w-full rounded-lg border border-tertiary;
max-height: max(500px, 75vh);
Expand Down
4 changes: 2 additions & 2 deletions components/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57155,10 +57155,10 @@ var Section = ({ node }) => {
const signifier = docAttrs["part-signifier"];
title = `${signifier || ""} ${sectNum} ${node.getTitle()}`;
} else {
title = `${node.getTitle()}`;
title = node.getTitle() || "";
}
} else {
title = `${node.getTitle()}`;
title = node.getTitle() || "";
}
} else {
title = node.getTitle() || "";
Expand Down
2 changes: 1 addition & 1 deletion components/dist/index.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions components/src/asciidoc/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*
* Copyright Oxide Computer Company
*/

import { Link16Icon } from '@/icons/react'
import { type AdocTypes, Content, getRole } from '@oxide/react-asciidoc'
import cn from 'classnames'
Expand Down Expand Up @@ -34,10 +33,10 @@ const Section = ({ node }: { node: AdocTypes.Section }) => {
const signifier = docAttrs['part-signifier']
title = `${signifier || ''} ${sectNum} ${node.getTitle()}`
} else {
title = `${node.getTitle()}`
title = node.getTitle() || ''
}
} else {
title = `${node.getTitle()}`
title = node.getTitle() || ''
}
} else {
title = node.getTitle() || ''
Expand Down
8 changes: 8 additions & 0 deletions components/src/assets/asciidoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
@apply text-accent;
}

.asciidoc-body .admonition-content .paragraph {
@apply mb-1 last:mb-0;
}

.asciidoc-body .admonition-content > div {
@apply normal-case;
}

.asciidoc-body img {
@apply mx-auto h-auto w-auto w-full rounded-lg border border-tertiary;
max-height: max(500px, 75vh);
Expand Down

0 comments on commit 69762f4

Please sign in to comment.