mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
This commit is contained in:
parent
43015fb193
commit
a46dfb6561
|
@ -31,7 +31,7 @@ export function Navigation() {
|
||||||
<ToggleNavigation />
|
<ToggleNavigation />
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'pl-2 pr-6 sm:pr-4 h-12 flex cc-shadow-border',
|
'pl-2 sm:pr-4 h-12 flex cc-shadow-border',
|
||||||
'transition-[max-height,translate] ease-bezier duration-(--duration-move)',
|
'transition-[max-height,translate] ease-bezier duration-(--duration-move)',
|
||||||
noNavigationAnimation ? '-translate-y-6 max-h-0' : 'max-h-12'
|
noNavigationAnimation ? '-translate-y-6 max-h-0' : 'max-h-12'
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
|
import clsx from 'clsx';
|
||||||
|
|
||||||
import { IconDarkTheme, IconLightTheme, IconPin, IconUnpin } from '@/components/icons';
|
import { IconDarkTheme, IconLightTheme, IconPin, IconUnpin } from '@/components/icons';
|
||||||
import { useAppLayoutStore } from '@/stores/app-layout';
|
import { useAppLayoutStore } from '@/stores/app-layout';
|
||||||
import { usePreferencesStore } from '@/stores/preferences';
|
import { usePreferencesStore } from '@/stores/preferences';
|
||||||
|
@ -11,7 +13,9 @@ export function ToggleNavigation() {
|
||||||
const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation);
|
const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation);
|
||||||
const toggleNoNavigation = useAppLayoutStore(state => state.toggleNoNavigation);
|
const toggleNoNavigation = useAppLayoutStore(state => state.toggleNoNavigation);
|
||||||
return (
|
return (
|
||||||
<div className='absolute top-0 right-0 z-navigation h-12 grid'>
|
<div
|
||||||
|
className={clsx('absolute top-0 right-0 z-navigation h-12', noNavigationAnimation ? 'grid' : 'hidden sm:grid')}
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
type='button'
|
type='button'
|
||||||
|
|
|
@ -108,7 +108,13 @@ export function DlgCloneLibraryItem() {
|
||||||
control={control}
|
control={control}
|
||||||
name='location'
|
name='location'
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<PickLocation value={field.value} rows={2} onChange={field.onChange} error={errors.location} />
|
<PickLocation
|
||||||
|
value={field.value} //
|
||||||
|
rows={2}
|
||||||
|
onChange={field.onChange}
|
||||||
|
className={!!errors.location ? '-mb-6' : undefined}
|
||||||
|
error={errors.location}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,8 @@ export function FormCreateItem() {
|
||||||
visible: true,
|
visible: true,
|
||||||
read_only: false,
|
read_only: false,
|
||||||
location: !!searchLocation ? searchLocation : LocationHead.USER
|
location: !!searchLocation ? searchLocation : LocationHead.USER
|
||||||
}
|
},
|
||||||
|
mode: 'onChange'
|
||||||
});
|
});
|
||||||
const itemType = useWatch({ control, name: 'item_type' });
|
const itemType = useWatch({ control, name: 'item_type' });
|
||||||
const file = useWatch({ control, name: 'file' });
|
const file = useWatch({ control, name: 'file' });
|
||||||
|
@ -197,7 +198,13 @@ export function FormCreateItem() {
|
||||||
control={control}
|
control={control}
|
||||||
name='location'
|
name='location'
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<PickLocation value={field.value} rows={2} onChange={field.onChange} error={errors.location} />
|
<PickLocation
|
||||||
|
value={field.value} //
|
||||||
|
rows={2}
|
||||||
|
onChange={field.onChange}
|
||||||
|
className={!!errors.location ? '-mb-6' : undefined}
|
||||||
|
error={errors.location}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ export function EditorConstituenta() {
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'relative ',
|
'relative ',
|
||||||
'cc-fade-in',
|
'cc-fade-in',
|
||||||
'min-h-80 max-w-[calc(min(100vw,95rem))] mx-auto',
|
'min-h-80 max-w-[calc(min(100vw,80rem))] mx-auto',
|
||||||
'flex pt-8',
|
'flex pt-8',
|
||||||
'overflow-y-auto overflow-x-clip',
|
'overflow-y-auto overflow-x-clip',
|
||||||
isNarrow && 'flex-col md:items-center'
|
isNarrow && 'flex-col md:items-center'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user