0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix: logo size in get sample section in app integration guide (#4354)

This commit is contained in:
Charles Zhao 2023-08-17 00:46:15 -05:00 committed by GitHub
parent ec081d9740
commit 6e03b83658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 20 deletions

View file

@ -25,10 +25,6 @@
}
.logo {
padding: _.unit(2);
svg {
width: 32px;
height: 32px;
}
width: 48px;
height: 48px;
}

View file

@ -22,11 +22,7 @@ export default function Sample() {
return (
<aside className={styles.sample}>
{Logo && (
<div className={styles.logo}>
<Logo />
</div>
)}
{Logo && <Logo className={styles.logo} />}
<hgroup>
<header>Want to see a sample?</header>
<p>Check out our repository for a sample application that uses this guide.</p>

View file

@ -2,14 +2,7 @@ import { DomainStatus, type ApplicationResponse } from '@logto/schemas';
import { MDXProvider } from '@mdx-js/react';
import { conditional } from '@silverhand/essentials';
import classNames from 'classnames';
import {
useContext,
Suspense,
createContext,
useMemo,
type LazyExoticComponent,
type ComponentType,
} from 'react';
import { useContext, Suspense, createContext, useMemo, type LazyExoticComponent } from 'react';
import guides from '@/assets/docs/guides';
import { type GuideMetadata } from '@/assets/docs/guides/types';
@ -27,7 +20,7 @@ import * as styles from './index.module.scss';
type GuideContextType = {
metadata: Readonly<GuideMetadata>;
Logo?: LazyExoticComponent<ComponentType>;
Logo?: LazyExoticComponent<SvgComponent>;
app: ApplicationResponse;
endpoint: string;
alternativeEndpoint?: string;