Skip to content

Commit 3028567

Browse files
fix(main): Layout breaking when frontmatter has too many properties
1 parent f49b0f2 commit 3028567

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ui/suggestion-factory.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,17 @@ function createMetaDiv(args: {
289289
text: key,
290290
});
291291

292+
const frontMatterValueDiv = createDiv({
293+
cls: "another-quick-switcher__item__meta__front_matter__values",
294+
});
292295
for (const v of [value].flat().filter(isPresent)) {
293-
frontMatterDiv.createSpan({
296+
frontMatterValueDiv.createSpan({
294297
cls: "another-quick-switcher__item__meta__front_matter__value",
295298
title: v.toString(),
296299
text: v.toString(),
297300
});
298301
}
302+
frontMatterDiv.appendChild(frontMatterValueDiv);
299303

300304
frontMattersDiv.appendChild(frontMatterDiv);
301305
}

0 commit comments

Comments
 (0)