0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

style(console): fix unexpected spacing under page title (#5423)

This commit is contained in:
Xiao Yijun 2024-02-23 10:33:21 +08:00 committed by GitHub
parent af1bf007d9
commit 605ef09ed0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 5 deletions

View file

@ -49,7 +49,7 @@ function ListPage<
<CardTitle {...title} />
{createButton && <Button icon={<Plus />} type="primary" size="large" {...createButton} />}
</div>
{subHeader && <div className={pageLayout.subHeader}>{subHeader}</div>}
{subHeader}
<Table className={pageLayout.table} {...table} />
{widgets}
</div>

View file

@ -3,3 +3,7 @@
.icon {
flex-shrink: 0;
}
.chargeNotification {
margin-top: _.unit(4);
}

View file

@ -85,6 +85,7 @@ function ApiResources() {
hasSurpassedLimit={hasSurpassedLimit}
quotaItemPhraseKey="api_resource"
checkedFlagKey="apiResource"
className={styles.chargeNotification}
/>
)
}

View file

@ -0,0 +1,5 @@
@use '@/scss/underscore' as _;
.notice {
margin-top: _.unit(4);
}

View file

@ -6,6 +6,8 @@ import InlineNotification from '@/ds-components/InlineNotification';
import TextLink from '@/ds-components/TextLink';
import useUserPreferences from '@/hooks/use-user-preferences';
import * as styles from './index.module.scss';
function SignInExperienceSetupNotice() {
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
const { data: connectors } = useSWR<ConnectorResponse[]>('api/connectors');
@ -21,6 +23,7 @@ function SignInExperienceSetupNotice() {
return (
<InlineNotification
action="general.got_it"
className={styles.notice}
onClick={() => {
void update({ connectorSieNoticeConfirmed: true });
}}

View file

@ -15,10 +15,6 @@
gap: _.unit(6);
}
.subHeader {
margin: _.unit(4) 0 0;
}
.table {
flex: 1;
margin-top: _.unit(4);