Skip to content

Commit

Permalink
fix guide-runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Jan 2, 2025
1 parent 771a960 commit 95f36e1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,36 +139,39 @@ export default function TemplateRepositorySelector({ isEdit }: TemplateRepositor
])
return (
<VStack alignItems={'center'} mb={7} gap={'24px'}>
<Flex w="full" justify={'space-between'} className="guide-runtimes">
<Label w={100} alignSelf={'flex-start'}>
{t('runtime_environment')}
</Label>
<TemplateRepositoryListNav />
</Flex>
{!!startedTemplate && (
<Box className="guide-runtimes">
<Flex w="full" justify={'space-between'} mb={'24px'}>
<Label w={100} alignSelf={'flex-start'}>
{t('runtime_environment')}
</Label>
<TemplateRepositoryListNav />
</Flex>

{!!startedTemplate && (
<Flex gap={'10px'} px={'14px'} width={'full'}>
<Box width={'85px'}>{t('current')}</Box>
<Flex flexWrap={'wrap'} gap={'12px'} flex={1}>
<TemplateRepositoryItem
item={{
uid: startedTemplate.uid,
iconId: startedTemplate.iconId || '',
name: startedTemplate.name
}}
isEdit={isEdit}
/>
</Flex>
</Flex>
)}
<Flex gap={'10px'} px={'14px'} width={'full'}>
<Box width={'85px'}>{t('current')}</Box>
{/* Language */}
{categorizedData['LANGUAGE'].length !== 0 && <Box width={'85px'}>{t('language')}</Box>}
<Flex flexWrap={'wrap'} gap={'12px'} flex={1}>
<TemplateRepositoryItem
item={{
uid: startedTemplate.uid,
iconId: startedTemplate.iconId || '',
name: startedTemplate.name
}}
isEdit={isEdit}
/>
{categorizedData['LANGUAGE']?.map((item) => (
<TemplateRepositoryItem key={item.uid} item={item} isEdit={isEdit} />
))}
</Flex>
</Flex>
)}
<Flex gap={'10px'} px={'14px'} width={'full'}>
{/* Language */}
{categorizedData['LANGUAGE'].length !== 0 && <Box width={'85px'}>{t('language')}</Box>}
<Flex flexWrap={'wrap'} gap={'12px'} flex={1}>
{categorizedData['LANGUAGE']?.map((item) => (
<TemplateRepositoryItem key={item.uid} item={item} isEdit={isEdit} />
))}
</Flex>
</Flex>
</Box>
<Flex gap={'10px'} px={'14px'} width={'full'}>
{/* Framework */}
{categorizedData['FRAMEWORK'].length !== 0 && <Box width={'85px'}>{t('framework')}</Box>}
Expand Down
6 changes: 3 additions & 3 deletions frontend/providers/devbox/hooks/useDriver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export default function useDriver() {
{
element: '.guide-custom-resources',
popover: {
side: 'right',
align: 'center',
borderRadius: '12px 0px 12px 12px',
side: 'bottom',
align: 'start',
borderRadius: '0px 12px 12px 12px',
PopoverBody: (
<Flex gap={'6px'}>
<DriverStarIcon />
Expand Down

0 comments on commit 95f36e1

Please sign in to comment.