fix: last item can not click show opt and copty pos

This commit is contained in:
金伟强 2023-05-21 16:13:22 +08:00
parent 08c86ab70a
commit 946fadb591
3 changed files with 7 additions and 4 deletions

View File

@ -44,7 +44,7 @@ export default function AppNavItem({
router.push(url) // use Link causes popup item always trigger jump. Can not be solved by e.stopPropagation().
}}
>
<div className='flex items-center space-x-2'>
<div className='flex items-center space-x-2 w-0 grow'>
{/* <div
className={cn(
'shrink-0 mr-2 h-6 w-6 rounded-md border bg-[#D5F5F6]',
@ -54,7 +54,7 @@ export default function AppNavItem({
}}
/> */}
<AppIcon size='tiny' icon={icon} background={icon_background} />
<div className='max-w-[110px] overflow-hidden text-ellipsis whitespace-nowrap'>{name}</div>
<div className='overflow-hidden text-ellipsis whitespace-nowrap'>{name}</div>
</div>
{
!isSelected && (

View File

@ -84,7 +84,7 @@ const SideBar: FC<{
{installedApps.length > 0 && (
<div className='mt-10'>
<div className='pl-2 text-xs text-gray-500 font-medium uppercase'>{t('explore.sidebar.workspace')}</div>
<div className='mt-3 space-y-1 overflow-y-auto'
<div className='mt-3 space-y-1 overflow-y-auto overflow-x-hidden pb-20'
style={{
maxHeight: 'calc(100vh - 250px)'
}}

View File

@ -337,7 +337,10 @@ const TextGeneration: FC<IMainProps> = ({
{/* copyright */}
<div className='fixed left-8 bottom-4 flex space-x-2 text-gray-400 font-normal text-xs'>
<div className={cn(
isInstalledApp ? 'left-[248px]' : 'left-8',
'fixed bottom-4 flex space-x-2 text-gray-400 font-normal text-xs'
)}>
<div className="">© {siteInfo.copyright || siteInfo.title} {(new Date()).getFullYear()}</div>
{siteInfo.privacy_policy && (
<>