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:
parent
af1bf007d9
commit
605ef09ed0
6 changed files with 14 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -3,3 +3,7 @@
|
|||
.icon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chargeNotification {
|
||||
margin-top: _.unit(4);
|
||||
}
|
||||
|
|
|
@ -85,6 +85,7 @@ function ApiResources() {
|
|||
hasSurpassedLimit={hasSurpassedLimit}
|
||||
quotaItemPhraseKey="api_resource"
|
||||
checkedFlagKey="apiResource"
|
||||
className={styles.chargeNotification}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
@use '@/scss/underscore' as _;
|
||||
|
||||
.notice {
|
||||
margin-top: _.unit(4);
|
||||
}
|
|
@ -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 });
|
||||
}}
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
gap: _.unit(6);
|
||||
}
|
||||
|
||||
.subHeader {
|
||||
margin: _.unit(4) 0 0;
|
||||
}
|
||||
|
||||
.table {
|
||||
flex: 1;
|
||||
margin-top: _.unit(4);
|
||||
|
|
Loading…
Add table
Reference in a new issue