0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-24 22:41:28 -05:00

fix(console): add a brief header to the organization guide in drawer view (#4895)

This commit is contained in:
Charles Zhao 2023-11-16 15:03:38 +08:00 committed by GitHub
parent e0f935e5c8
commit 8a50d27757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 18 deletions

View file

@ -6,8 +6,8 @@
right: 0;
bottom: 0;
width: 50%;
max-width: 900px;
min-width: 800px;
max-width: 960px;
min-width: 860px;
outline: none;
background: var(--color-base);

View file

@ -19,7 +19,7 @@ import TabNav, { TabNavItem } from '@/ds-components/TabNav';
import useApi, { type RequestError } from '@/hooks/use-api';
import useTenantPathname from '@/hooks/use-tenant-pathname';
import IntroductionAndPermissions from '../Organizations/Guide/Introduction';
import Introduction from '../Organizations/Guide/Introduction';
import Members from './Members';
import Settings from './Settings';
@ -89,12 +89,14 @@ function OrganizationDetails() {
]}
/>
<Drawer
title="organizations.guide.title"
subtitle="organizations.guide.subtitle"
isOpen={isGuideDrawerOpen}
onClose={() => {
setIsGuideDrawerOpen(false);
}}
>
<IntroductionAndPermissions isReadonly />
<Introduction isReadonly />
</Drawer>
<DeleteConfirmModal
isOpen={isDeleteFormOpen}

View file

@ -29,7 +29,7 @@ function User({
onMouseOut,
}: Props) {
return (
<Tooltip content={tooltip} placement="bottom">
<Tooltip content={tooltip}>
<div
className={classNames(
styles.user,

View file

@ -1,17 +1,23 @@
@use '@/scss/underscore' as _;
.title {
font: var(--font-title-1);
}
.container {
.title {
font: var(--font-title-1);
}
.sectionTitle {
font: var(--font-title-2);
}
.sectionTitle {
font: var(--font-title-2);
}
.description {
font: var(--font-body-2);
}
.description {
font: var(--font-body-2);
}
.panel {
flex: 1;
.panel {
flex: 1;
}
.compact {
padding: _.unit(6);
}
}

View file

@ -42,8 +42,8 @@ function Introduction({ isReadonly }: Props) {
return (
<>
<OverlayScrollbar className={parentStyles.stepContainer}>
<div className={classNames(parentStyles.content)}>
<Card className={parentStyles.card}>
<div className={classNames(parentStyles.content, styles.container)}>
<Card className={classNames(parentStyles.card, isReadonly && styles.compact)}>
<OrganizationIcon className={parentStyles.icon} />
<FlexBox type="column" gap={24}>
<div className={styles.title}>{t('guide.introduction.title')}</div>