help-beta: Remove top margin from unplugin icons.

In some cases, some of the starlight css was inserting a margin top of
1rem to the svg tag inserted by unplgin-icons. We make the top margin
0 explicitly to make sure that extra margin is not added.
This commit is contained in:
Shubham Padia
2025-07-17 10:05:45 +00:00
committed by Tim Abbott
parent a738ac0ff7
commit 9c22cc07f6

View File

@@ -16,7 +16,7 @@ export default defineConfig({
// It was setting the height to 1024 and 960 for some
// icons. It is better to set the height explicitly.
defaultStyle:
"display: inline; vertical-align: text-bottom; height: 1em; width: 1em; margin-bottom: 0;",
"display: inline; vertical-align: text-bottom; height: 1em; width: 1em; margin-bottom: 0; margin-top: 0;",
customCollections: {
// unplugin-icons has a FileSystemIconLoader which is more
// versatile. But it only supports one directory path for