mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-05 17:31:22 +02:00
Update snippets list
This commit is contained in:
@@ -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)]`}>
|
||||
|
||||
Reference in New Issue
Block a user