Make the icons line up

This commit is contained in:
Copple committed 2021-09-12 12:39:39 +08:00
1 parent fa85328f0c
commit f01ea7e2ef
1 file changed
+9 -6
+9 -6
View File
@@ -10,10 +10,11 @@ import Link from '@docusaurus/Link'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
const frameworks = [
{
name: 'Angular',
logo: '/img/libraries/angular-icon.svg',
href: '/docs/guides/with-angular' },
{
name: 'Angular',
logo: '/img/libraries/angular-icon.svg',
href: '/docs/guides/with-angular',
},
{
name: 'Expo',
logo: '/img/libraries/expo-icon.svg',
@@ -87,8 +88,10 @@ Supabase is just Postgres, which makes it compatible with a large number of tool
{frameworks.map((x) => (
<div key={x.name} class="col col--3">
<Link class="card" to={x.href}>
<div class="card__body" style={{ display: 'flex', gap: 20 }}>
{x.logo && <img src={x.logo} alt={x.name} width="20" height="20"/>}
<div class="card__body" style={{ display: 'flex', gap: 20, alignItems: 'center' }}>
{x.logo && (
<img src={x.logo} alt={x.name} width="20" style={{ display: 'block', maxHeight: 20 }} />
)}
<p>{x.name}</p>
</div>
</Link>