small fixes

This commit is contained in:
Anton Tranelis 2025-03-20 23:32:52 +00:00
parent a4574baf45
commit faebd0afb6
4 changed files with 8 additions and 6 deletions

View File

@ -174,7 +174,7 @@ export function ProfileView({ attestationApi }: { attestationApi?: ItemsApi<any>
{item && (
<MapOverlayPage
key={item.id}
className={`tw:p-0! tw:m-4! tw:md:w-[calc(50%-32px)] tw:w-[calc(100%-32px)] tw:min-w-80 tw:max-w-3xl tw:left-0! tw:sm:left-auto! tw:top-0 tw:bottom-0 tw:transition-opacity tw:duration-500 ${!selectPosition ? 'tw:opacity-100 tw:pointer-events-auto' : 'tw:opacity-0 tw:pointer-events-none'}`}
className={`tw:p-0! tw:overflow-scroll tw:m-4! tw:md:w-[calc(50%-32px)] tw:w-[calc(100%-32px)] tw:min-w-80 tw:max-w-3xl tw:left-0! tw:sm:left-auto! tw:top-0 tw:bottom-0 tw:transition-opacity tw:duration-500 ${!selectPosition ? 'tw:opacity-100 tw:pointer-events-auto' : 'tw:opacity-0 tw:pointer-events-none'}`}
>
<>
<div className={'tw:px-6 tw:pt-6'}>

View File

@ -39,7 +39,9 @@ export const FlexForm = ({
{...templateItem.item}
/>
) : (
<div key={templateItem.id}>Component not found</div>
<div className='tw:mt-2' key={templateItem.id}>
{templateItem.collection} form not found
</div>
)
})}
</div>

View File

@ -19,8 +19,6 @@ const componentMap = {
}
export const FlexView = ({ item }: { item: Item }) => {
// eslint-disable-next-line no-console
console.log(item)
return (
<div className='tw:h-full tw:overflow-y-auto fade'>
{item.layer?.itemType.profileTemplate.map(
@ -30,7 +28,9 @@ export const FlexView = ({ item }: { item: Item }) => {
return TemplateComponent ? (
<TemplateComponent key={templateItem.id} item={item} {...templateItem.item} />
) : (
<div key={templateItem.id}>Component not found</div>
<div className='tw:mx-6 tw:mb-6' key={templateItem.id}>
{templateItem.collection} view not found
</div>
)
},
)}

View File

@ -1,7 +1,7 @@
@import 'tailwindcss' prefix(tw);
@plugin "daisyui" {
themes: light --default, dark --prefersdark, valentine, retro, aqua, cyberpunk, caramellatte, abyss, silk;
};
}
@theme {
--animate-*: initial;