Skip to content

Commit e496326

Browse files
committed
fixup!
1 parent 5f930f6 commit e496326

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/generators/jsx-ast/utils/buildContent.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const extractHeadingContent = content => {
9595
const { text } = content.data;
9696

9797
if (!text) {
98-
return text;
98+
return content.children;
9999
}
100100

101101
// Try to get full name; fallback slices text after first colon
@@ -108,8 +108,8 @@ export const extractHeadingContent = content => {
108108
// Find the index of the first colon, i.e. `Class:`.
109109
const colonPos = findText(content, ':')[0];
110110

111-
if (colonPos === -1) {
112-
return text;
111+
if (!colonPos) {
112+
return content.children;
113113
}
114114

115115
// Slice out the prefix from the index gotten above.

src/generators/web/ui/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88

99
main {
10-
overflow: hidden;
10+
overflow-x: scroll;
1111

1212
/* Code should inherit its font size */
1313
code {

0 commit comments

Comments
 (0)