Skip to content

Commit

Permalink
fix: styles (langgenius#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Aug 24, 2023
1 parent b1fd1b3 commit a3fec11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions web/app/(shareLayout)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const Layout: FC<{
children: React.ReactNode
}> = ({ children }) => {
return (
<div className="min-w-[300px]">
<GA gaType={GaType.webapp} />
{children}
<div className=''>
<div className="min-w-[300px]">
<GA gaType={GaType.webapp} />
{children}
</div>
</div>
)
}
Expand Down
4 changes: 2 additions & 2 deletions web/app/components/share/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ const Main: FC<IMainProps> = ({
return <Loading type='app' />

return (
<div className='bg-gray-100 flex w-full h-full'>
<div className='bg-gray-100'>
{!isInstalledApp && (
<Header
title={siteInfo.title}
Expand Down Expand Up @@ -611,7 +611,7 @@ const Main: FC<IMainProps> = ({
)}
{/* main */}
<div className={cn(
isInstalledApp ? s.installedApp : '',
isInstalledApp ? s.installedApp : 'h-screen',
'flex-grow flex flex-col overflow-y-auto',
)
}>
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/share/chatbot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ const Main: FC<IMainProps> = ({

<div className={'flex bg-white overflow-hidden'}>
<div className={cn(
isInstalledApp ? s.installedApp : '',
isInstalledApp ? s.installedApp : 'h-[calc(100vh_-_3rem)]',
'flex-grow flex flex-col overflow-y-auto',
)
}>
Expand Down

0 comments on commit a3fec11

Please sign in to comment.