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

pull/198/head
金伟强 3 years ago
parent 08c86ab70a
commit 946fadb591

@ -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(). 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 {/* <div
className={cn( className={cn(
'shrink-0 mr-2 h-6 w-6 rounded-md border bg-[#D5F5F6]', '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} /> <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> </div>
{ {
!isSelected && ( !isSelected && (

@ -84,7 +84,7 @@ const SideBar: FC<{
{installedApps.length > 0 && ( {installedApps.length > 0 && (
<div className='mt-10'> <div className='mt-10'>
<div className='pl-2 text-xs text-gray-500 font-medium uppercase'>{t('explore.sidebar.workspace')}</div> <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={{ style={{
maxHeight: 'calc(100vh - 250px)' maxHeight: 'calc(100vh - 250px)'
}} }}

@ -337,7 +337,10 @@ const TextGeneration: FC<IMainProps> = ({
{/* copyright */} {/* 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> <div className="">© {siteInfo.copyright || siteInfo.title} {(new Date()).getFullYear()}</div>
{siteInfo.privacy_policy && ( {siteInfo.privacy_policy && (
<> <>

Loading…
Cancel
Save