mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
M: Improve transitions and remounting
This commit is contained in:
parent
95f1284c6e
commit
a618a2bc42
|
@ -78,8 +78,7 @@ export function InfoError({ error }: InfoErrorProps) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'cc-fade-in',
|
'min-w-100', //
|
||||||
'min-w-100',
|
|
||||||
'px-3 py-2 flex flex-col',
|
'px-3 py-2 flex flex-col',
|
||||||
'text-destructive text-sm font-semibold',
|
'text-destructive text-sm font-semibold',
|
||||||
'select-text'
|
'select-text'
|
||||||
|
|
|
@ -15,7 +15,7 @@ export function ExpectedAnonymous() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='cc-fade-in flex flex-col items-center gap-3 py-6'>
|
<div className='flex flex-col items-center gap-3 py-6'>
|
||||||
<p className='font-semibold'>{`Вы вошли в систему как ${user.username}`}</p>
|
<p className='font-semibold'>{`Вы вошли в систему как ${user.username}`}</p>
|
||||||
<div className='flex gap-3'>
|
<div className='flex gap-3'>
|
||||||
<TextURL text='Новая схема' href='/library/create' />
|
<TextURL text='Новая схема' href='/library/create' />
|
||||||
|
|
|
@ -55,7 +55,7 @@ export function LoginPage() {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
className='cc-column cc-fade-in w-96 mx-auto pt-12 pb-6 px-6'
|
className='cc-column w-96 mx-auto pt-12 pb-6 px-6'
|
||||||
onSubmit={event => void handleSubmit(onSubmit)(event)}
|
onSubmit={event => void handleSubmit(onSubmit)(event)}
|
||||||
onChange={resetErrors}
|
onChange={resetErrors}
|
||||||
>
|
>
|
||||||
|
|
|
@ -32,7 +32,7 @@ export function Component() {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<form className='cc-fade-in cc-column w-96 mx-auto px-6 mt-3' onSubmit={handleSubmit} onChange={clearServerError}>
|
<form className='cc-column w-96 mx-auto px-6 mt-3' onSubmit={handleSubmit} onChange={clearServerError}>
|
||||||
<TextInput
|
<TextInput
|
||||||
id='email'
|
id='email'
|
||||||
autoComplete='email'
|
autoComplete='email'
|
||||||
|
|
|
@ -13,11 +13,7 @@ interface ViewTopicProps {
|
||||||
export function ViewTopic({ topic }: ViewTopicProps) {
|
export function ViewTopic({ topic }: ViewTopicProps) {
|
||||||
const mainHeight = useMainHeight();
|
const mainHeight = useMainHeight();
|
||||||
return (
|
return (
|
||||||
<div
|
<div key={topic} className='py-2 px-6 mx-auto sm:mx-0 lg:px-12 overflow-y-auto' style={{ maxHeight: mainHeight }}>
|
||||||
key={topic}
|
|
||||||
className='cc-fade-in py-2 px-6 mx-auto sm:mx-0 lg:px-12 overflow-y-auto'
|
|
||||||
style={{ maxHeight: mainHeight }}
|
|
||||||
>
|
|
||||||
<TopicPage topic={topic} />
|
<TopicPage topic={topic} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -16,7 +16,7 @@ export function Component() {
|
||||||
}, [hideFooter]);
|
}, [hideFooter]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='cc-fade-in flex justify-center overflow-hidden' style={{ maxHeight: panelHeight }}>
|
<div className='flex justify-center overflow-hidden' style={{ maxHeight: panelHeight }}>
|
||||||
<TransformWrapper>
|
<TransformWrapper>
|
||||||
<TransformComponent>
|
<TransformComponent>
|
||||||
<img alt='Схема базы данных' src={resources.db_schema} className='w-fit h-fit' />
|
<img alt='Схема базы данных' src={resources.db_schema} className='w-fit h-fit' />
|
||||||
|
|
|
@ -99,7 +99,7 @@ export function FormCreateItem() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
className='cc-fade-in cc-column w-120 mx-auto px-6 py-3'
|
className='cc-column w-120 mx-auto px-6 py-3'
|
||||||
onSubmit={event => void handleSubmit(onSubmit)(event)}
|
onSubmit={event => void handleSubmit(onSubmit)(event)}
|
||||||
onChange={resetErrors}
|
onChange={resetErrors}
|
||||||
>
|
>
|
||||||
|
|
|
@ -46,7 +46,7 @@ export function EditorOssCard() {
|
||||||
className={clsx('md:max-w-fit max-w-128 min-w-fit', 'flex flex-row flex-wrap pt-8 px-6 justify-center')}
|
className={clsx('md:max-w-fit max-w-128 min-w-fit', 'flex flex-row flex-wrap pt-8 px-6 justify-center')}
|
||||||
>
|
>
|
||||||
<div className='cc-column px-3'>
|
<div className='cc-column px-3'>
|
||||||
<FormOSS />
|
<FormOSS key={schema.id} />
|
||||||
<EditorLibraryItem schema={schema} isAttachedToOSS={false} />
|
<EditorLibraryItem schema={schema} isAttachedToOSS={false} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,7 @@ export function EditorConstituenta() {
|
||||||
<div className='mx-0 md:mx-auto pt-8 md:w-195 shrink-0 xs:pt-0'>
|
<div className='mx-0 md:mx-auto pt-8 md:w-195 shrink-0 xs:pt-0'>
|
||||||
{activeCst ? (
|
{activeCst ? (
|
||||||
<FormConstituenta
|
<FormConstituenta
|
||||||
|
key={activeCst.id}
|
||||||
id={globalIDs.constituenta_editor}
|
id={globalIDs.constituenta_editor}
|
||||||
toggleReset={toggleReset}
|
toggleReset={toggleReset}
|
||||||
activeCst={activeCst}
|
activeCst={activeCst}
|
||||||
|
|
|
@ -155,7 +155,7 @@ export function EditorRSExpression({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='relative cc-fade-in'>
|
<div className='relative'>
|
||||||
<ToolbarRSExpression
|
<ToolbarRSExpression
|
||||||
className='absolute -top-2 right-0'
|
className='absolute -top-2 right-0'
|
||||||
showAST={handleShowAST}
|
showAST={handleShowAST}
|
||||||
|
|
|
@ -41,7 +41,7 @@ export function EditorRSFormCard() {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className='cc-column shrink'>
|
<div className='cc-column shrink'>
|
||||||
<FormRSForm />
|
<FormRSForm key={schema.id} />
|
||||||
<EditorLibraryItem schema={schema} isAttachedToOSS={isAttachedToOSS} />
|
<EditorLibraryItem schema={schema} isAttachedToOSS={isAttachedToOSS} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ export function TGFlow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='cc-fade-in relative' tabIndex={-1} onKeyDown={handleKeyDown}>
|
<div className='relative' tabIndex={-1} onKeyDown={handleKeyDown}>
|
||||||
<div className='cc-tab-tools flex flex-col items-center rounded-b-2xl backdrop-blur-xs'>
|
<div className='cc-tab-tools flex flex-col items-center rounded-b-2xl backdrop-blur-xs'>
|
||||||
<ToolbarTermGraph />
|
<ToolbarTermGraph />
|
||||||
<ToolbarFocusedCst />
|
<ToolbarFocusedCst />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user