Update snippets list

This commit is contained in:
Elio Struyf
2024-04-24 15:38:25 +02:00
parent 75a3fc21a3
commit 3fedaf7d5f
2 changed files with 5 additions and 5 deletions
@@ -36,7 +36,7 @@ export const SponsorMsg: React.FunctionComponent<ISponsorMsgProps> = ({
return (
<footer
className={`w-full px-4 py-2 text-center space-x-8 flex items-center border-t ${isBacker ? 'justify-center' : 'justify-between'
} bg-[var(--vscode-editor-background)] text-[var(--vscode-editor-foreground)] border-[var(--frontmatter-border)]`}
} bg-[var(--vscode-editor-background)] text-[var(--frontmatter-secondary-text)] border-[var(--frontmatter-border)]`}
>
{isBacker ? (
<span>
@@ -17,6 +17,7 @@ import { Item } from './Item';
import { NewForm } from './NewForm';
import * as l10n from '@vscode/l10n';
import { LocalizationKey } from '../../../localization';
import { List } from '../Media/List';
export interface ISnippetsProps { }
@@ -128,14 +129,13 @@ export const Snippets: React.FunctionComponent<ISnippetsProps> = (
)}
{(snippetKeys && snippetKeys.length > 0) ? (
<ul
role="list"
className={`grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-6 lg:grid-cols-4 xl:gap-x-8`}
<List
gap={4}
>
{snippetKeys.map((snippetKey: any, index: number) => (
<Item key={index} snippetKey={snippetKey} snippet={snippets[snippetKey]} />
))}
</ul>
</List>
) : (
<div className="w-full h-full flex items-center justify-center text-white">
<div className={`flex flex-col items-center text-[var(--frontmatter-text)]`}>