fix(web): Optimize AppInfo Component Layout (#22212)

- Remove unnecessary div container outside the CardView component
- Adjust the class name of the CardView component to directly use flex-1 instead of flex grow
pull/22218/head
zhujiruo 10 months ago
parent 2a85f28963
commit c28c026b55

@ -308,13 +308,11 @@ const AppInfo = ({ expand, onlyShowDetail = false, openState = false, onDetailEx
operations={operations} operations={operations}
/> />
</div> </div>
<div className='flex flex-1'>
<CardView <CardView
appId={appDetail.id} appId={appDetail.id}
isInPanel={true} isInPanel={true}
className='flex grow flex-col gap-2 overflow-auto px-2 py-1' className='flex flex-1 flex-col gap-2 overflow-auto px-2 py-1'
/> />
</div>
<Divider /> <Divider />
<div className='flex min-h-fit shrink-0 flex-col items-start justify-center gap-3 self-stretch border-t-[0.5px] border-divider-subtle p-2'> <div className='flex min-h-fit shrink-0 flex-col items-start justify-center gap-3 self-stretch border-t-[0.5px] border-divider-subtle p-2'>
<Button <Button

Loading…
Cancel
Save